Skip to main content

Module errors

Module errors 

Source
Expand description

Error codes, the ApiError handlers return, and the JSON:API error documents every error response becomes.

Structs§

ApiError
An error with a Fusion Stack error code, rendered as one JSON:API error object. Return it from a handler or middleware with ? or Err(..)?; it converts into laravel::Error.

Enums§

ApiErrorCode
The error codes Fusion Stack itself sends. Their statuses and titles come from the shared error table, so both server packages send the same ones.

Constants§

CONTENT_TYPE
The media type of Fusion Stack error documents.

Traits§

ErrorCode
A machine-readable error code with the HTTP status it is sent with and a short title. An application implements it for its own codes, such as invoice_not_finalised.