Skip to main content
Version: 2.4

ErrorFlow

Error type used to propagate errors through flows between bricks.

Index

Constructors

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

staticcreate

  • create(message: string, code: number): ErrorFlow
  • Create a new Error object to be sent in an error flow


    Parameters

    • message: string

      the error message

    • code: number

      the code associated to the error

    Returns ErrorFlow