Axinom Mosaic Libraries
    Preparing search index...

    Function ErrorTypeToStationError

    • Converts an ErrorType object into a station error.

      Parameters

      • OptionaloriginalError: 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.

      • OptionaldefaultBody: 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