Skip to main content

Class: ServerFailure

common.ServerFailure

Exceptions originated at the Temporal service.

Hierarchy#

Constructors#

constructor#

new ServerFailure(message, nonRetryable, cause?)

Parameters#

NameType
messageundefined | string
nonRetryableboolean
cause?Error

Overrides#

TemporalFailure.constructor

Properties#

cause#

Optional Readonly cause: Error

Inherited from#

TemporalFailure.cause


failure#

Optional failure: IFailure

The original failure that constructed this error.

Only present if this error was generated from an external operation.

Inherited from#

TemporalFailure.failure


message#

message: string

Inherited from#

TemporalFailure.message


name#

Readonly name: string

Overrides#

TemporalFailure.name


nonRetryable#

Readonly nonRetryable: boolean


stack#

Optional stack: string

Inherited from#

TemporalFailure.stack


prepareStackTrace#

Static Optional prepareStackTrace: (err: Error, stackTraces: CallSite[]) => any

Type declaration#

▸ (err, stackTraces): any

Optional override for formatting stack traces

Parameters#
NameType
errError
stackTracesCallSite[]
Returns#

any

Inherited from#

TemporalFailure.prepareStackTrace


stackTraceLimit#

Static stackTraceLimit: number

Inherited from#

TemporalFailure.stackTraceLimit

Methods#

captureStackTrace#

Static captureStackTrace(targetObject, constructorOpt?): void

Create .stack property on a target object

Parameters#

NameType
targetObjectobject
constructorOpt?Function

Returns#

void

Inherited from#

TemporalFailure.captureStackTrace