Skip to main content

Class: ApplicationFailureInfo

Represents an ApplicationFailureInfo.

Properties​

category​

category: ApplicationErrorCategory

ApplicationFailureInfo category.


details?​

optional details?: $Properties | null

ApplicationFailureInfo details.


nextRetryDelay?​

optional nextRetryDelay?: $Properties | null

next_retry_delay can be used by the client to override the activity retry interval calculated by the retry policy. Retry attempts will still be subject to the maximum retries limit and total time limit defined by the policy.


nonRetryable​

nonRetryable: boolean

ApplicationFailureInfo nonRetryable.


type​

type: string

ApplicationFailureInfo type.

Methods​

toJSON()​

toJSON(): object

Converts this ApplicationFailureInfo to JSON.

Returns​

object

JSON object


create()​

Call Signature​

static create(properties?): ApplicationFailureInfo & $Properties

Creates a new ApplicationFailureInfo instance using the specified properties.

Parameters​
properties?​

$Properties

Properties to set

Returns​

ApplicationFailureInfo & $Properties

ApplicationFailureInfo instance

Call Signature​

static create(properties?): ApplicationFailureInfo

Creates a new ApplicationFailureInfo instance using the specified properties.

Parameters​
properties?​

$Properties

Properties to set

Returns​

ApplicationFailureInfo

ApplicationFailureInfo instance


decode()​

static decode(reader, length?): ApplicationFailureInfo & $Properties

Decodes an ApplicationFailureInfo message from the specified reader or buffer.

Parameters​

reader​

Uint8Array<ArrayBufferLike> | Reader

Reader or buffer to decode from

length?​

number

Message length if known beforehand

Returns​

ApplicationFailureInfo & $Properties

ApplicationFailureInfo

Throws​

If the payload is not a reader or valid buffer

Throws​

If required fields are missing


decodeDelimited()​

static decodeDelimited(reader): ApplicationFailureInfo & $Properties

Decodes an ApplicationFailureInfo message from the specified reader or buffer, length delimited.

Parameters​

reader​

Uint8Array<ArrayBufferLike> | Reader

Reader or buffer to decode from

Returns​

ApplicationFailureInfo & $Properties

ApplicationFailureInfo

Throws​

If the payload is not a reader or valid buffer

Throws​

If required fields are missing


encode()​

static encode(message, writer?): Writer

Encodes the specified ApplicationFailureInfo message. Does not implicitly temporal.api.failure.v1.ApplicationFailureInfo.verify|verify messages.

Parameters​

message​

$Properties

ApplicationFailureInfo message or plain object to encode

writer?​

Writer

Writer to encode to

Returns​

Writer

Writer


encodeDelimited()​

static encodeDelimited(message, writer?): Writer

Encodes the specified ApplicationFailureInfo message, length delimited. Does not implicitly temporal.api.failure.v1.ApplicationFailureInfo.verify|verify messages.

Parameters​

message​

$Properties

ApplicationFailureInfo message or plain object to encode

writer?​

Writer

Writer to encode to

Returns​

Writer

Writer


fromObject()​

static fromObject(object): ApplicationFailureInfo

Creates an ApplicationFailureInfo message from a plain object. Also converts values to their respective internal types.

Parameters​

object​

Plain object

Returns​

ApplicationFailureInfo

ApplicationFailureInfo


toObject()​

static toObject(message, options?): object

Creates a plain object from an ApplicationFailureInfo message. Also converts values to other types if specified.

Parameters​

message​

ApplicationFailureInfo

ApplicationFailureInfo

options?​

IConversionOptions

Conversion options

Returns​

object

Plain object