QueryErrors

The framework error codes of the query side, as the edge answers them:

  • MALFORMED (400): the request body cannot be read as a query;

  • INVALID (400): the query breaks a rule; each violation carries its stable code, such as UNKNOWN_FIELD (me.ahoo.wow.api.query.QueryErrorCodes);

  • FAILED (500): a query the caller got right that the server failed to run;

  • TIMEOUT (504, no Retry-After): the query ran out of its execution time; running it again would run as long;

  • STORAGE_UNAVAILABLE (503): the storage could not be reached or did not answer in time; the same query may pass later.

  • MIN_VERSION_NOT_REACHED (409, with Retry-After): a state read asked for a version the aggregate has not reached within its wait (me.ahoo.wow.api.read.MinVersionNotReachedException);

  • BUSY (429, with Retry-After): the query's store already runs as many queries as its bulkhead allows (QueryBulkhead); the query was not run, and the same query may pass later.

  • DATASET_UNAVAILABLE (409): the dataset is served but cannot be queried now, such as one whose definition needs revision (7.2b-2); the problem names the reason, in fixed words.

They are the codes of FrameworkErrors, whose table gives each its HTTP status; a caller the query scope does not admit is answered with FORBIDDEN.

Properties

Link copied to clipboard
const val BUSY: String
Link copied to clipboard

A dataset that is not served, or not to the caller.

Link copied to clipboard
Link copied to clipboard
const val FAILED: String
Link copied to clipboard
const val FORBIDDEN: String

The caller may not run this query.

Link copied to clipboard
const val INVALID: String
Link copied to clipboard
const val MALFORMED: String
Link copied to clipboard

A state read of a minimum version the aggregate has not reached.

Link copied to clipboard
const val NOT_FOUND: String

A single query that matched no record, whatever its model.

Link copied to clipboard
Link copied to clipboard
const val TIMEOUT: String
Link copied to clipboard

An aggregation that names no sort found more groups than its limit.