QueryRequestException

class QueryRequestException(val errorMsg: String, val code: String, name: String = BODY, cause: Throwable? = null, val violation: QueryViolation? = null, problem: String? = null) : IllegalArgumentException, QueryError

A query request the client got wrong: IllegalArgument with the human errorMsg and one binding error naming where (name, a JSON path or body) and which rule (code, stable and machine-readable). violation is the catalog entry it renders, when the rule is one (QueryViolation.Kind.REQUEST): the request is then invalid. Decoding errors state only a code: the request is malformed.

Constructors

Link copied to clipboard
constructor(errorMsg: String, code: String, name: String = BODY, cause: Throwable? = null, violation: QueryViolation? = null, problem: String? = null)
constructor(violation: QueryViolation, problem: String? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Where and which rule a rejected request broke; empty for a server fault.

Link copied to clipboard
Link copied to clipboard
open override val errorCode: String

One of QueryErrors.

Link copied to clipboard
open override val errorMsg: String

The text the caller is answered with: it names what failed without internal detail.

Link copied to clipboard