Class AssertionException
Thrown to indicate that an assertion has failed.
Implements
Inherited Members
Namespace: Lucene.Net.Diagnostics
Assembly: Lucene.Net.dll
Syntax
[Serializable]
public class AssertionException : Exception, ISerializable
Constructors
AssertionException()
Constructs an AssertionException with no detail message.
Declaration
public AssertionException()
AssertionException(string)
Constructs an AssertionException with the provided message
.
Declaration
public AssertionException(string message)
Parameters
Type | Name | Description |
---|---|---|
string | message | Value to be used as the assertion message. |
AssertionException(string, Exception)
Constructs an AssertionException with the provided message
and innerException
.
Declaration
public AssertionException(string message, Exception innerException)
Parameters
Type | Name | Description |
---|---|---|
string | message | Value to be used as the assertion message. |
Exception | innerException | The exception that is the cause of the current exception,
or a |