AssertionException Class
Represents an assertion failure.
public sealed class AssertionException : Exception- Inheritance
ExceptionAssertionException
Constructors
| Name | Description |
|---|---|
| AssertionException() | Initializes a new instance of the AssertionException class. |
| AssertionException(string?) | Initializes a new instance of the AssertionException class with a specified error message. |
| AssertionException(string?, Exception?) | Initializes a new instance of the AssertionException class with a specified error message and inner exception. |
AssertionException overloads
AssertionException()
AssertionException.csInitializes a new instance of the AssertionException class.
public AssertionException()AssertionException(string?)
AssertionException.csInitializes a new instance of the AssertionException class with a specified error message.
public AssertionException(string? message)Parameters
messagestring?- The message that describes the error.
AssertionException(string?, Exception?)
AssertionException.csInitializes a new instance of the AssertionException class with a specified error message and inner exception.
Parameters
messagestring?- The message that describes the error.
innerExceptionException?- The exception that is the cause of the current exception.