Documentation
    Preparing search index...

    Does not lead to Restate retries.

    Leads to an output message with a failure defined.

    Hierarchy (View Summary)

    Index

    Constructors

    • Parameters

      • message: string
      • Optionaloptions: { cause?: any; errorCode?: number }
        • Optionalcause?: any

          YOU MUST NOT USE THIS FIELD, AS IT WON'T BE RECORDED AND CAN LEAD TO NON-DETERMINISM! From the next SDK version, the constructor won't accept this field anymore.

        • OptionalerrorCode?: number

          Error code. This should be an HTTP status code, and in case the service was invoked from the ingress, this will be propagated back to the caller.

      Returns TerminalError

    Properties

    cause?: unknown
    code: number
    message: string
    name: string = "TerminalError"
    stack?: string
    prepareStackTrace?: (err: Error, stackTraces: CallSite[]) => any

    Optional override for formatting stack traces

    stackTraceLimit: number

    Methods

    • Create .stack property on a target object

      Parameters

      • targetObject: object
      • OptionalconstructorOpt: Function

      Returns void