Class SelfCheck
Provides methods to perform self-checks in library or application code.
Inherited Members
Namespace: Swan
Syntax
public static class SelfCheck
Methods
Failure(String, String, Int32)
Creates and returns an exception telling that an internal self-check has failed.
The returned exception will be of type InternalErrorException; its
message
, preceded by an indication of the assembly, source file,
and line number of the failed check.
Declaration
public static InternalErrorException Failure(string message, string filePath = "", int lineNumber = 0)
Parameters
Type | Name | Description |
---|---|---|
String | message | The exception message. |
String | filePath | The path of the source file where this method is called. This parameter is automatically added by the compiler amd should never be provided explicitly. |
Int32 | lineNumber | The line number in source where this method is called. This parameter is automatically added by the compiler amd should never be provided explicitly. |
Returns
Type | Description |
---|---|
InternalErrorException | A newly-created instance of InternalErrorException. |