Class ParseException
Represents errors that occur while parsing dynamic linq string expressions.
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)
Initializes a new instance of the ParseException class with a specified error message and position.
Declaration
public ParseException(string message, int position)
Parameters
| Type | Name | Description |
|---|---|---|
| String | message | The message that describes the error. |
| Int32 | position | The location in the parsed string that produced the ParseException |
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 |
|---|---|
| Int32 |
Methods
| Improve this Doc View SourceGetObjectData(SerializationInfo, StreamingContext)
When overridden in a derived class, sets the SerializationInfo with information about the exception.
Declaration
public override void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| SerializationInfo | info | The SerializationInfo that holds the serialized object data about the exception being thrown. |
| StreamingContext | context | The StreamingContext that contains contextual information about the source or destination. |
Overrides
| Improve this Doc View SourceToString()
Creates and returns a string representation of the current exception.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| String | A string representation of the current exception. |