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
codeCStructErrorCodeThe stable read or read-limit failure category.
messagestringThe optional caller-facing diagnostic.
innerExceptionExceptionThe 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
messagestringThe 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)