Class ParseException
Represents errors that occur while parsing dynamic linq string expressions.
Inheritance
Implements
Inherited Members
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 SourceParseException(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 SourcePosition
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 SourceGetObjectData(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
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. |