Class AssertionException
Thrown to indicate that an assertion has failed.
Inheritance
System.Object
System.Exception
AssertionException
Implements
System.Runtime.Serialization.ISerializable
Inherited Members
System.Exception.GetBaseException()
System.Exception.GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)
System.Exception.GetType()
System.Exception.ToString()
System.Exception.Data
System.Exception.HelpLink
System.Exception.HResult
System.Exception.InnerException
System.Exception.Message
System.Exception.Source
System.Exception.StackTrace
System.Exception.TargetSite
System.Exception.SerializeObjectState
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Lucene.Net.Diagnostics
Assembly: Lucene.Net.dll
Syntax
public class AssertionException : Exception, ISerializable
Constructors
| Improve this Doc View SourceAssertionException()
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 |
---|---|---|
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 |
Implements
System.Runtime.Serialization.ISerializable