Class AssertionException
Exception thrown when an assertion fails.
Implements
Inherited Members
Namespace: Benday.Common.Testing
Assembly: Benday.Common.Testing.dll
Syntax
[Serializable]
public class AssertionException : Exception, ISerializable
Constructors
| Edit this page View SourceAssertionException()
Initializes a new instance of the AssertionException class.
Declaration
public AssertionException()
AssertionException(string)
Initializes a new instance of the AssertionException class with a specified error message.
Declaration
public AssertionException(string message)
Parameters
| Type | Name | Description |
|---|---|---|
| string | message | The message that describes the error. |
AssertionException(string, Exception)
Initializes a new instance of the AssertionException class with a specified error message and a reference to the inner exception.
Declaration
public AssertionException(string message, Exception innerException)
Parameters
| Type | Name | Description |
|---|---|---|
| string | message | The error message that explains the reason for the exception. |
| Exception | innerException | The exception that is the cause of the current exception. |