Class AssertionException
Thrown to indicate that an assertion has failed.
Inheritance
System.Object
AssertionException
Namespace: Lucene.Net.Diagnostics
Assembly: Lucene.Net.TestFramework.dll
Syntax
public class AssertionException : Exception
Constructors
| Improve this Doc View SourceAssertionException()
Constructs an Assertion
Declaration
public AssertionException()
AssertionException(String)
Constructs an Assertionmessage
.
Declaration
public AssertionException(string message)
Parameters
Type | Name | Description |
---|---|---|
System. |
message | Value to be used as the assertion message. |
AssertionException(String, Exception)
Constructs an Assertionmessage
and innerException
.
Declaration
public AssertionException(string message, Exception innerException)
Parameters
Type | Name | Description |
---|---|---|
System. |
message | Value to be used as the assertion message. |
Exception | innerException | The exception that is the cause of the current exception,
or a |