NotFound
Exception raised when querying a resource that does not exist.
This error is provided by Mebo to complement the rest support (Web.restful), although the main purpose is to provide a status code which is used when reporting it through requests, it can still be used when an action is executed through a different handler since it defines a custom exception type that can be used to identify the error.
Member Summary
Public Members | ||
public |
Boolean telling if this error is not allowed as output (Handler.output) when it has been raised from a nested action (an action created from another action (Action.createAction)). |
|
public |
Status code used by the Handler when this error is raised from inside of a top level action (an action that has not been created from another action). |
Inherited Summary
From class MeboError | ||
public |
Boolean telling if this error is not allowed as output (Handler.output) when it has been raised from a nested action (an action created from another action (Action.createAction)). |
|
public |
Status code used by the Handler when this error is raised from inside of a top level action (an action that has not been created from another action). |
Public Members
public disableOutputInNested: boolean source
Boolean telling if this error is not allowed as output (Handler.output) when it has been raised from a nested action (an action created from another action (Action.createAction)). When output is disabled the error will not be handled by the Writer, therefore the error will be emitted by the signal Handler.onErrorDuringOutput.
Value driven by:
Settings.get('error/notFound/disableOutputInNested')
(default: false
)
Override:
MeboError#disableOutputInNestedpublic status: number source
Status code used by the Handler when this error is raised from inside of a top level action (an action that has not been created from another action).
Value driven by:
Settings.get('error/notFound/status')
(default: 404
)