Represents an error that occurs during a run.

Param

The error message.

Param

Optional. Additional options for the error.

Examples

import { RunError } from "@intuned/sdk/runtime"

throw new RunError('An error occurred', {
  retryable: true,
  status_code: 500,
  error_code: 'SERVER_ERROR'
});

Extends

  • Error

Constructors

new RunError()

new RunError(message, options?): RunError

Parameters

message: string

options?: RunErrorOptions

Returns

RunError

Overrides

Error.constructor

Properties

options

options: RunErrorOptions;

The options associated with the error.