Skip to main content

Class: UnsuccessfulOperationError

nexus.v1.UnsuccessfulOperationError

Represents an UnsuccessfulOperationError.

Properties​

failure​

• Optional failure: null | $Properties

UnsuccessfulOperationError failure.


operationState​

• operationState: string

See https://github.com/nexus-rpc/api/blob/main/SPEC.md#operationinfo.

Methods​

toJSON​

▸ toJSON(): Object

Converts this UnsuccessfulOperationError to JSON.

Returns​

Object

JSON object


create​

▸ create(properties?): UnsuccessfulOperationError & $Properties

Creates a new UnsuccessfulOperationError instance using the specified properties.

Parameters​

NameTypeDescription
properties?$PropertiesProperties to set

Returns​

UnsuccessfulOperationError & $Properties

UnsuccessfulOperationError instance

▸ create(properties?): UnsuccessfulOperationError

Parameters​

NameType
properties?$Properties

Returns​

UnsuccessfulOperationError


decode​

▸ decode(reader, length?): UnsuccessfulOperationError & $Properties

Decodes an UnsuccessfulOperationError message from the specified reader or buffer.

Parameters​

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

Returns​

UnsuccessfulOperationError & $Properties

UnsuccessfulOperationError

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


decodeDelimited​

▸ decodeDelimited(reader): UnsuccessfulOperationError & $Properties

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

Parameters​

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from

Returns​

UnsuccessfulOperationError & $Properties

UnsuccessfulOperationError

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 UnsuccessfulOperationError message. Does not implicitly temporal.api.nexus.v1.UnsuccessfulOperationError.verify|verify messages.

Parameters​

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

Returns​

Writer

Writer


encodeDelimited​

▸ encodeDelimited(message, writer?): Writer

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

Parameters​

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

Returns​

Writer

Writer


fromObject​

▸ fromObject(object): UnsuccessfulOperationError

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

Parameters​

NameTypeDescription
objectObjectPlain object

Returns​

UnsuccessfulOperationError

UnsuccessfulOperationError


toObject​

▸ toObject(message, options?): Object

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

Parameters​

NameTypeDescription
messageUnsuccessfulOperationErrorUnsuccessfulOperationError
options?IConversionOptionsConversion options

Returns​

Object

Plain object