FatalError

libflitter/errors/FatalError~ FatalError

An error that, if thrown within Flitter, will cause Flitter to exit immediately.

Constructor

new FatalError()

Source:

Extends

Members

component :string

Source:
Inherited From:

Name of the Flitter component that encountered an error.

Type:
  • string

Methods

required(service) → {FlitterError}

Source:
Inherited From:

Creates an error message for missing services by name.

Parameters:
Name Type Description
service string | Array.<string>

the name of the service or array of services that are required

Returns:
  • instance of self to allow chaining
Type
FlitterError

unit(nameopt) → {string|FlitterError}

Source:
Inherited From:

Get or set the component name.

Parameters:
Name Type Attributes Default Description
name string | null <optional>
null

name of the component

Returns:
Type
string | FlitterError