Class AssertionException
Thrown to indicate that an assertion has failed.
Inheritance
Implements
Inherited Members
Namespace: Lucene.Net.Diagnostics
Assembly: Lucene.Net.dll
Syntax
[Serializable]
public class AssertionException : Exception, ISerializable, IError
Constructors
| Improve this Doc View SourceAssertionException()
Constructs an AssertionException with no detail message.
Declaration
public AssertionException()
AssertionException(SerializationInfo, StreamingContext)
Initializes a new instance of this class with serialized data.
Declaration
protected AssertionException(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
System.Runtime.Serialization.SerializationInfo | info | The System.Runtime.Serialization.SerializationInfo that holds the serialized object data about the exception being thrown. |
System.Runtime.Serialization.StreamingContext | context | The System.Runtime.Serialization.StreamingContext that contains contextual information about the source or destination. |
AssertionException(String)
Constructs an AssertionException with the provided message
.
Declaration
public AssertionException(string message)
Parameters
Type | Name | Description |
---|---|---|
System.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 |
---|---|---|
System.String | message | Value to be used as the assertion message. |
System.Exception | innerException | The exception that is the cause of the current exception,
or a |