Skip to main content

Class: NexusOperationFailureInfo

failure.v1.NexusOperationFailureInfo

Representation of the Temporal SDK NexusOperationError object that is returned to workflow callers.

Properties

endpoint

endpoint: string

Endpoint name.


operation

operation: string

Operation name.


operationId

operationId: string

Operation ID - may be empty if the operation completed synchronously.

Deprecated. Renamed to operation_token.


operationToken

operationToken: string

Operation token - may be empty if the operation completed synchronously.


scheduledEventId

scheduledEventId: Long

The NexusOperationScheduled event ID.


service

service: string

Service name.

Methods

toJSON

toJSON(): Object

Converts this NexusOperationFailureInfo to JSON.

Returns

Object

JSON object


create

create(properties?): NexusOperationFailureInfo & $Properties

Creates a new NexusOperationFailureInfo instance using the specified properties.

Parameters

NameTypeDescription
properties?$PropertiesProperties to set

Returns

NexusOperationFailureInfo & $Properties

NexusOperationFailureInfo instance

create(properties?): NexusOperationFailureInfo

Parameters

NameType
properties?$Properties

Returns

NexusOperationFailureInfo


decode

decode(reader, length?): NexusOperationFailureInfo & $Properties

Decodes a NexusOperationFailureInfo message from the specified reader or buffer.

Parameters

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from
length?numberMessage length if known beforehand

Returns

NexusOperationFailureInfo & $Properties

NexusOperationFailureInfo

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


decodeDelimited

decodeDelimited(reader): NexusOperationFailureInfo & $Properties

Decodes a NexusOperationFailureInfo message from the specified reader or buffer, length delimited.

Parameters

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from

Returns

NexusOperationFailureInfo & $Properties

NexusOperationFailureInfo

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


encode

encode(message, writer?): Writer

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

Parameters

NameTypeDescription
message$PropertiesNexusOperationFailureInfo message or plain object to encode
writer?WriterWriter to encode to

Returns

Writer

Writer


encodeDelimited

encodeDelimited(message, writer?): Writer

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

Parameters

NameTypeDescription
message$PropertiesNexusOperationFailureInfo message or plain object to encode
writer?WriterWriter to encode to

Returns

Writer

Writer


fromObject

fromObject(object): NexusOperationFailureInfo

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

Parameters

NameTypeDescription
objectObjectPlain object

Returns

NexusOperationFailureInfo

NexusOperationFailureInfo


toObject

toObject(message, options?): Object

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

Parameters

NameTypeDescription
messageNexusOperationFailureInfoNexusOperationFailureInfo
options?IConversionOptionsConversion options

Returns

Object

Plain object