QueryRequestException

class QueryRequestException(val message: 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 message and one violation 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(message: String, code: String, name: String = BODY, cause: Throwable? = null, violation: QueryViolation? = null, problem: String? = null)
constructor(violation: QueryViolation, problem: String? = null)

The request that breaks violation: its message, code and location are the violation's.

Types

Link copied to clipboard
object Companion

Properties

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

The framework code the edge answers with.

Link copied to clipboard
open override val message: String

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

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

Where and which rule a rejected request broke: its Violation.path (a JSON path, the absolute logical field, "" for the model, or body) and its Violation.code (me.ahoo.wow.api.query.QueryErrorCodes); empty for a server fault or a refusal of the caller.