The ExceptionHelper type exposes the following members.
Methods
| Name | Description | |
|---|---|---|
|
|
Assert |
Throws an AssertionFailedException if a condition is not fulfilled.
|
|
|
AssertArgumentNotEmptyOrNull |
Throws an ArgumentNullException if a string reference is null
or if the referenced string is emptu.
|
|
|
AssertArgumentNotNull | Overloaded. |
|
|
AssertValidArgument |
Throws an ArgumentException if a condition is not fulfilled.
|
|
|
AssertValidOperation |
Conditionally throws an InvalidOperationException (message
withparameters).
|
|
|
AssumeNotNull |
Tells the static analyser that the given reference is trusted to be non-null.
|
|
|
CreateArgumentException |
Creates an ArgumentException.
|
|
|
CreateAssertionFailedException |
Creates an AssertionFailedException and reads the message from
the resource manager.
|
|
|
CreateBindingException | Overloaded. |
|
|
CreateFileNotFoundException |
Creates an FileNotFoundException.
|
|
|
CreateInvalidEnumerationValueException |
Creates an AssertionFailedException with a message telling
that an enumeration contained an unexpected value.
|
|
|
CreateInvalidOperationException |
Creates an InvalidOperationException.
|
|
|
Equals |
Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
|
|
Finalize |
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) |
|
|
GetHashCode |
Serves as a hash function for a particular type. GetHashCode()()() is suitable for use in hashing algorithms and data structures like a hash table. (Inherited from Object.) |
|
|
GetMessage | Overloaded. |
|
|
GetType |
Gets the Type of the current instance. (Inherited from Object.) |
|
|
MemberwiseClone |
Creates a shallow copy of the current Object. (Inherited from Object.) |
|
|
ToString |
Returns a String that represents the current Object. (Inherited from Object.) |