Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class AssertionException

    Thrown to indicate that an assertion has failed.

    Inheritance
    object
    Exception
    AssertionException
    Implements
    ISerializable
    Inherited Members
    Exception.GetBaseException()
    Exception.GetType()
    Exception.ToString()
    Exception.Data
    Exception.HelpLink
    Exception.HResult
    Exception.InnerException
    Exception.Message
    Exception.Source
    Exception.StackTrace
    Exception.TargetSite
    Exception.SerializeObjectState
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    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 null reference (Nothing in Visual Basic) if no inner exception is specified.

    Implements

    ISerializable

    Extension Methods

    ExceptionExtensions.AddSuppressed(Exception, Exception)
    ExceptionExtensions.GetSuppressed(Exception)
    ExceptionExtensions.GetSuppressedAsList(Exception)
    Back to top Copyright © 2024 The Apache Software Foundation, Licensed under the Apache License, Version 2.0
    Apache Lucene.Net, Lucene.Net, Apache, the Apache feather logo, and the Apache Lucene.Net project logo are trademarks of The Apache Software Foundation.
    All other marks mentioned may be trademarks or registered trademarks of their respective owners.