Automata Docs Automata Docs
Automata Docs Automata Docs

Search Results for

    Edit this page

    Class AlangFormatException

    Represents an exception thrown when an error occurs during parsing of Alang expressions.

    Inheritance
    object
    Exception
    AlangFormatException
    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: Automata.Core.Alang
    Assembly: Automata.Core.dll
    Syntax
    [Serializable]
    public class AlangFormatException : Exception, ISerializable
    Remarks

    Provides detailed information about the parsing error, including the index in the input where the error occurred and the specific type of error. All throwing of this exception is done in the AlangCursor class.

    Fields

    | Edit this page View Source

    ErrorReason

    Type of parsing error that occurred.

    Declaration
    public readonly ParseErrorReason ErrorReason
    Field Value
    Type Description
    ParseErrorReason
    | Edit this page View Source

    Index

    Index in the input string where the parsing error occurred.

    Declaration
    public readonly int Index
    Field Value
    Type Description
    int

    Methods

    | Edit this page View Source

    Assert(bool, ParseErrorReason, int, string)

    Conditionally throws an AlangFormatExceptioniffcondition is false.

    Declaration
    public static bool Assert(bool condition, ParseErrorReason errorReason, int index, string message)
    Parameters
    Type Name Description
    bool condition

    iff false an exception is thrown.

    ParseErrorReason errorReason

    Reason for the parsing error.

    int index

    Index in the input string where the parsing error occurred.

    string message

    Error message with details about the exception.

    Returns
    Type Description
    bool

    true or throws exception.

    Implements

    ISerializable

    See Also

    AlangCursor