Class H3Exception
The base exception thrown when an H3 operation fails. Carries the numeric ErrorCode reported by the native library together with its human-readable description.
public class H3Exception : Exception, ISerializable
- Inheritance
-
H3Exception
- Implements
- Derived
- Inherited Members
Constructors
H3Exception()
Initializes a new instance of the H3Exception class.
public H3Exception()
H3Exception(string)
Initializes a new instance of the H3Exception class with a message.
public H3Exception(string message)
Parameters
messagestringThe message that describes the error.
H3Exception(string, Exception)
Initializes a new instance of the H3Exception class with a message and inner exception.
public H3Exception(string message, Exception innerException)
Parameters
messagestringThe message that describes the error.
innerExceptionExceptionThe exception that is the cause of this exception.
Properties
ErrorCode
Gets the numeric H3 error code reported by the native library, matching the
upstream H3Error (E_*) values. 0 indicates that no native
code was associated with this exception.
public uint ErrorCode { get; }