• API

    Show / Hide Table of Contents

    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.TestFramework.dll
    Syntax
    public class AssertionException : Exception, ISerializable

    Constructors

    | Improve this Doc View Source

    AssertionException()

    Constructs an AssertionException with no detail message.

    Declaration
    public AssertionException()
    | Improve this Doc View Source

    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.

    | Improve this Doc View Source

    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 null reference (Nothing in Visual Basic) if no inner exception is specified.

    Implements

    System.Runtime.Serialization.ISerializable
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)