Class: ServiceUnavailableError

Messages/HTTP/ServiceUnavailableError~ ServiceUnavailableError

The UnprocessableEntityError is the error class for this kind of error. It extend is AbstractHTTPError and fix his status code.

new ServiceUnavailableError()

Source:

Extends

Members


<static, constant> statusCode :number

The static statusCode getter reimplementation for this kind of error, will return 503
Type:
  • number
Default Value:
  • 422
Source:
See:

<constant> isAbstractError :boolean

A boolean based on classname that allow fast type checking, will ever be true
Type:
  • boolean
Inherited From:
Default Value:
  • true
Source:

<constant> isServiceUnavailableError :boolean

A boolean based on classname that allow fast type checking, will ever be true
Type:
  • boolean
Default Value:
  • true
Source:

<readonly> message :string

The error message
Type:
  • string
Inherited From:
Source:

<readonly> name :string

The name of current instanced error (a.k.a the constructor name)
Type:
  • string
Inherited From:
Source:

<readonly> stack :string

The stack trace of the error
Type:
  • string
Inherited From:
Source:

<abstract, readonly> statusCode :number

The abstract getter of http status code, internally it call the static getter statusCode that need to be reimplemented by extended class.
Type:
  • number
Inherited From:
Source:

<readonly> uuid :string

An auto-generated universally unique identifier, this allow to recognize any error by id
Type:
  • string
Inherited From:
Source: