Class TyphonException
Base class for all Typhon engine exceptions. Provides structured error information: numeric code and transience hint.
public class TyphonException : Exception, ISerializable
- Inheritance
-
TyphonException
- Implements
- Derived
- Inherited Members
Constructors
TyphonException(TyphonErrorCode, string)
Creates a new TyphonException with the specified error code and message.
public TyphonException(TyphonErrorCode errorCode, string message)
Parameters
errorCodeTyphonErrorCodeNumeric error code identifying the specific failure.
messagestringHuman-readable description of the error.
TyphonException(TyphonErrorCode, string, Exception)
Creates a new TyphonException with the specified error code, message, and inner exception.
public TyphonException(TyphonErrorCode errorCode, string message, Exception innerException)
Parameters
errorCodeTyphonErrorCodeNumeric error code identifying the specific failure.
messagestringHuman-readable description of the error.
innerExceptionExceptionThe exception that caused this exception.
Properties
ErrorCode
Numeric error code identifying the specific failure.
public TyphonErrorCode ErrorCode { get; }
Property Value
IsTransient
Hint: true if this failure is temporary and retrying may succeed. The engine does NOT retry automatically — this is informational for callers. Default is false — subclasses must explicitly opt in to transience.
public virtual bool IsTransient { get; }