Table of Contents

Class QueryParseException

Namespace
JsonApiDotNetCore.Queries.Parsing
Assembly
JsonApiDotNetCore.dll

The error that is thrown when parsing a query string parameter fails.

[PublicAPI]
public sealed class QueryParseException : Exception, ISerializable
Inheritance
QueryParseException
Implements
Inherited Members

Constructors

QueryParseException(string, int)

public QueryParseException(string message, int position)

Parameters

message string
position int

QueryParseException(string, int, Exception)

public QueryParseException(string message, int position, Exception innerException)

Parameters

message string
position int
innerException Exception

Properties

Position

Gets the zero-based position in the text of the query string parameter name/value, or at its end, where the failure occurred, or -1 if unavailable.

public int Position { get; }

Property Value

int

Methods

GetMessageWithPosition(string)

public string GetMessageWithPosition(string sourceText)

Parameters

sourceText string

Returns

string