Skip to main content
Version: Next

ErrorFlow

Error type used to propagate errors through flows between bricks.

Extends

  • unknown

Constructors

new ErrorFlow()

new ErrorFlow(): ErrorFlow

Returns

ErrorFlow

Inherited from

Error.constructor

Methods

getCode()

getCode(): number

Return the code associated to this error

Returns

number


getMessage()

getMessage(): string

Return the message of this error

Returns

string


getStack()

getStack(): string

Return the stack with the hierarchy of bricks that run the one having thrown the error.

Returns

string


create()

static create(message, code): ErrorFlow

Create a new Error object to be sent in an error flow

Parameters

ParameterTypeDescription
messagestringthe error message
codenumberthe code associated to the error

Returns

ErrorFlow