Skip to main content
Raised when the Runtime encounters an internal error. serverCode carries the Runtime’s own code field when the response had one, so callers can tell apart failures that share this class. Two matter for what to do next:
  • SIGNING_UNAVAILABLE (503): the Runtime refused BEFORE releasing the action because it could not sign an Execution Trust Record. Nothing was executed. Retry once signing is healthy, with a NEW businessTransactionId.
  • EXECUTION_RECORD_INCOMPLETE (500): the action WAS released to the execution system but its signed Execution Trust Record could not be produced. Do NOT retry as a new transaction, reconcile against the connector and the execution audit events for the businessTransactionId. Undefined when the response carried no code.

Extends

Constructors

Constructor

new InternalServerError(message, options?): InternalServerError

Parameters

message
string
options?
requestId?
string
cause?
unknown
serverCode?
string

Returns

InternalServerError

Overrides

ParmanaError.constructor

Properties

serverCode?

readonly optional serverCode?: string

code

readonly code: ErrorCode
Stable machine-readable error code.

Inherited from

ParmanaError.code

requestId?

readonly optional requestId?: string
Optional request identifier.

Inherited from

ParmanaError.requestId

cause?

readonly optional cause?: unknown
Optional underlying cause.

Inherited from

ParmanaError.cause

statusCode?

readonly optional statusCode?: number
The HTTP status of the response this error was made from, for example 403 or 503. Absent when no response was received (a network error or a timeout) and for errors raised by the SDK itself. The Python SDK’s equivalent is status_code.

Inherited from

ParmanaError.statusCode

stackTraceLimit

static stackTraceLimit: number
The Error.stackTraceLimit property specifies the number of stack frames collected by a stack trace (whether generated by new Error().stack or Error.captureStackTrace(obj)). The default value is 10 but may be set to any valid JavaScript number. Changes will affect any stack trace captured after the value has been changed. If set to a non-number value, or set to a negative number, stack traces will not capture any frames.

Inherited from

ParmanaError.stackTraceLimit

name

name: string

Inherited from

ParmanaError.name

message

message: string

Inherited from

ParmanaError.message

stack?

optional stack?: string

Inherited from

ParmanaError.stack

Methods

captureStackTrace()

static captureStackTrace(targetObject, constructorOpt?): void
Creates a .stack property on targetObject, which when accessed returns a string representing the location in the code at which Error.captureStackTrace() was called.
The first line of the trace will be prefixed with ${myObject.name}: ${myObject.message}. The optional constructorOpt argument accepts a function. If given, all frames above constructorOpt, including constructorOpt, will be omitted from the generated stack trace. The constructorOpt argument is useful for hiding implementation details of error generation from the user. For instance:

Parameters

targetObject
object
constructorOpt?
Function

Returns

void

Inherited from

ParmanaError.captureStackTrace

prepareStackTrace()

static prepareStackTrace(err, stackTraces): any

Parameters

err
Error
stackTraces
CallSite[]

Returns

any

See

https://v8.dev/docs/stack-trace-api#customizing-stack-traces

Inherited from

ParmanaError.prepareStackTrace