Table of Contents

Class CStructWriteException

Namespace
CStructSharp.Diagnostics
Assembly
CStructSharp.dll

Represents data that cannot be written according to the compiled binary layout.

public class CStructWriteException : CStructException, ISerializable
Inheritance
CStructWriteException
Implements
Derived
Inherited Members

Constructors

CStructWriteException()

Creates an empty write error.

public CStructWriteException()

CStructWriteException(CStructErrorCode, string?, Exception?)

Creates a write or write-limit error for a more specific derived category.

protected CStructWriteException(CStructErrorCode code, string? message, Exception? innerException = null)

Parameters

code CStructErrorCode

The stable write or write-limit failure category.

message string

The optional caller-facing diagnostic.

innerException Exception

The optional lower-level failure that caused this error.

CStructWriteException(string)

Creates a write error with an actionable diagnostic.

public CStructWriteException(string message)

Parameters

message string

The caller-facing diagnostic for the failed write.

CStructWriteException(string, Exception)

Creates a write error while preserving its lower-level cause.

public CStructWriteException(string message, Exception innerException)

Parameters

message string

The caller-facing diagnostic for the failed write.

innerException Exception

The lower-level stream, conversion, or arithmetic failure.