InvalidQueryException Class
Exception thrown by a builder in strict mode when the query has diagnostics.
public sealed class InvalidQueryException : ExceptionRemarks
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
ExceptionInvalidQueryException
Constructors
| Name | Description |
|---|---|
| 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.cspublic InvalidQueryException()No documentation is available.
InvalidQueryException(string?)
InvalidQueryException.csInvalidQueryException(string, IReadOnlyList<QueryDiagnostic>)
InvalidQueryException.csInitializes a new instance of the InvalidQueryException class for a query and its diagnostics.
public InvalidQueryException(string query, IReadOnlyList<QueryDiagnostic> diagnostics)Parameters
querystring- The query that is not valid.
diagnosticsIReadOnlyList<QueryDiagnostic>- The problems found in the query.
InvalidQueryException(string?, Exception?)
InvalidQueryException.csParameters
messagestring?innerExceptionException?
No documentation is available.
Properties
| Name | Description |
|---|---|
| Diagnostics | Gets the problems found in the query, in the order they appear in it. |
| Query | Gets the query that is not valid. |
Diagnostics
InvalidQueryException.csGets the problems found in the query, in the order they appear in it.
public IReadOnlyList<QueryDiagnostic> Diagnostics { get; }