InvalidQueryException Class

Exception thrown by a builder in strict mode when the query has diagnostics.

public sealed class InvalidQueryException : Exception

Remarks

QueryBuilder<T>.Strict and ExpressionQueryBuilder<T>.Strict enable strict mode. Otherwise, the query is read leniently and the diagnostics are available on the built query.

Inheritance
Exception InvalidQueryException

Constructors

NameDescription
InvalidQueryException()
InvalidQueryException(string?)
InvalidQueryException(string, IReadOnlyList<QueryDiagnostic>)Initializes a new instance of the InvalidQueryException class for a query and its diagnostics.
InvalidQueryException(string?, Exception?)

InvalidQueryException overloads

InvalidQueryException()

InvalidQueryException.cs
public InvalidQueryException()

No documentation is available.

InvalidQueryException(string?)

InvalidQueryException.cs
public InvalidQueryException(string? message)
Parameters
message string?

No documentation is available.

InvalidQueryException(string, IReadOnlyList<QueryDiagnostic>)

InvalidQueryException.cs

Initializes a new instance of the InvalidQueryException class for a query and its diagnostics.

public InvalidQueryException(string query, IReadOnlyList<QueryDiagnostic> diagnostics)
Parameters
query string
The query that is not valid.
diagnostics IReadOnlyList<QueryDiagnostic>
The problems found in the query.

InvalidQueryException(string?, Exception?)

InvalidQueryException.cs
public InvalidQueryException(string? message, Exception? innerException)
Parameters
message string?
innerException Exception?

No documentation is available.

Properties

NameDescription
DiagnosticsGets the problems found in the query, in the order they appear in it.
QueryGets the query that is not valid.

Gets the problems found in the query, in the order they appear in it.

public IReadOnlyList<QueryDiagnostic> Diagnostics { get; }

Gets the query that is not valid.

public string Query { get; }

Property value

string