calcinator v5.0.0 Calcinator.Alembic.Document View Source

Alembic.Document.t for errors added by Calcinator on top of Alembic.Error

Link to this section Summary

Functions

Retort returned a 500 JSONAPI error inside a 422 JSONRPC error

Converts an error reason from that isn’t a standard format (such as those from the backing store) to a 500 Internal Server Error JSONAPI error, but with id set to id that is also used in Logger.error, so that reason, which should remain private to limit implementation disclosures that could lead to security issues

The current resource or action is forbidden to the authenticated user

504 Gateway Timeout JSONAPI error document

Puts 404 Resource Not Found JSONAPI error with parameter as the source parameter

500 Internal Server Error JSONAPI error document with error with title "Ownership Error"

Puts 422 Unprocessable Entity JSONAPI error document with error with title "Sandbox Access Disallowed"

Puts 422 Unrpcessable Entity JSONAPI error document with error with title "Child missing"

Link to this section Functions

Retort returned a 500 JSONAPI error inside a 422 JSONRPC error.

Link to this function error_reason(reason) View Source
error_reason(term) :: Alembic.Document.t

Converts an error reason from that isn’t a standard format (such as those from the backing store) to a 500 Internal Server Error JSONAPI error, but with id set to id that is also used in Logger.error, so that reason, which should remain private to limit implementation disclosures that could lead to security issues.

Log Messages

id=UUIDv4 reason=inspect(reason)

The current resource or action is forbidden to the authenticated user

Link to this function gateway_timeout() View Source
gateway_timeout() :: Alembic.Document.t

504 Gateway Timeout JSONAPI error document.

Puts 404 Resource Not Found JSONAPI error with parameter as the source parameter.

Link to this function ownership_error() View Source
ownership_error() :: Alembic.Document.t

500 Internal Server Error JSONAPI error document with error with title "Ownership Error".

Link to this function sandbox_access_disallowed() View Source
sandbox_access_disallowed() :: Alembic.Document.t

Puts 422 Unprocessable Entity JSONAPI error document with error with title "Sandbox Access Disallowed".

Link to this function sandbox_token_missing() View Source
sandbox_token_missing() :: Alembic.Document.t

Puts 422 Unrpcessable Entity JSONAPI error document with error with title "Child missing".