Search Results for

    Show / Hide Table of Contents

    Class ParseException

    Represents errors that occur while parsing dynamic linq string expressions.

    Inheritance
    System.Object
    System.Exception
    ParseException
    Implements
    System.Runtime.Serialization.ISerializable
    System.Runtime.InteropServices._Exception
    Inherited Members
    System.Exception.GetBaseException()
    System.Exception.GetType()
    System.Exception.Message
    System.Exception.Data
    System.Exception.InnerException
    System.Exception.TargetSite
    System.Exception.StackTrace
    System.Exception.HelpLink
    System.Exception.Source
    System.Exception.HResult
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.MemberwiseClone()
    Namespace: System.Linq.Dynamic.Core.Exceptions
    Assembly: System.Linq.Dynamic.Core.dll
    Syntax
    [Serializable]
    public sealed class ParseException : Exception, ISerializable, _Exception

    Constructors

    | Improve this Doc View Source

    ParseException(String, Int32, Exception)

    Initializes a new instance of the ParseException class with a specified error message and position.

    Declaration
    public ParseException(string message, int position, Exception innerException = null)
    Parameters
    Type Name Description
    System.String message

    The message that describes the error.

    System.Int32 position

    The location in the parsed string that produced the ParseException

    System.Exception innerException

    The exception that is the cause of the current exception, or a null reference if no inner exception is specified.

    Properties

    | Improve this Doc View Source

    Position

    The location in the parsed string that produced the ParseException.

    Declaration
    public int Position { get; }
    Property Value
    Type Description
    System.Int32

    Methods

    | Improve this Doc View Source

    GetObjectData(SerializationInfo, StreamingContext)

    When overridden in a derived class, sets the System.Runtime.Serialization.SerializationInfo with information about the exception.

    Declaration
    public override void GetObjectData(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.

    Overrides
    System.Exception.GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)
    | Improve this Doc View Source

    ToString()

    Creates and returns a string representation of the current exception.

    Declaration
    public override string ToString()
    Returns
    Type Description
    System.String

    A string representation of the current exception.

    Overrides
    System.Exception.ToString()

    Implements

    System.Runtime.Serialization.ISerializable
    System.Runtime.InteropServices._Exception
    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX