Table of Contents

Class CStructReadException

Namespace
CStructSharp.Diagnostics
Assembly
CStructSharp.dll

Represents a binary-layout read that could not be completed safely.

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

Constructors

CStructReadException()

Creates an empty read error.

public CStructReadException()

CStructReadException(CStructErrorCode, string?, Exception?)

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

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

Parameters

code CStructErrorCode

The stable read or read-limit failure category.

message string

The optional caller-facing diagnostic.

innerException Exception

The optional lower-level failure that caused this error.

CStructReadException(string)

Creates a read error with a message that explains what could not be read.

public CStructReadException(string message)

Parameters

message string

The caller-facing diagnostic for the failed read.

CStructReadException(string, Exception)

Creates a read error with its message and the lower-level error that caused it.

public CStructReadException(string message, Exception innerException)

Parameters

message string

The caller-facing diagnostic for the failed read.

innerException Exception

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