Home Intro Source Mebo GitHub
import NoContent from 'mebo/src/MeboErrors/NoContent.js'
public class | source

NoContent

Extends:

ErrorMeboError → NoContent

Exception raised when the required resource that should be updated 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.

See:

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/noContent/disableOutputInNested') (default: false)

Override:

MeboError#disableOutputInNested

public 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/noContent/status') (default: 204)

Override:

MeboError#status