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
codeCStructErrorCodeThe stable write or write-limit failure category.
messagestringThe optional caller-facing diagnostic.
innerExceptionExceptionThe optional lower-level failure that caused this error.
CStructWriteException(string)
Creates a write error with an actionable diagnostic.
public CStructWriteException(string message)
Parameters
messagestringThe 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)