QuerySchemaValidationException

class QuerySchemaValidationException(message: String, cause: Throwable? = null, val violation: QueryViolation? = null) : QuerySchemaException

A query that does not fit its model or the model's storage: QueryErrors.INVALID with the violation it breaks. Without a violation it is a schema that does not validate, a server fault (QueryErrors.FAILED).

Constructors

Link copied to clipboard
constructor(message: String, cause: Throwable? = null, violation: QueryViolation? = null)
constructor(violation: QueryViolation)

The query that breaks violation, with the violation's message and no cause.

Properties

Link copied to clipboard
open override val errorCode: String

The framework code the edge answers with.

Link copied to clipboard

The structured violation, when the check that failed states one.

Link copied to clipboard
open override val violations: List<Violation>

One violation per violation broken: its field (or "" for the model), its stable code and its text.