• Converts an ErrorType object into a station error.

    Parameters

    • Optional originalError: ErrorType
    • defaultTitle: string = 'An error occurred.'

      The message that should be used as default title, in case the ErrorType object is no StationError that already defines a title.

    • Optional defaultBody: string

      The body that should be used in case the function can not infer the body of the message.

    Returns StationError

    A station error object

Generated using TypeDoc