Class: ErrorMessage
Represents an ErrorMessage.
Properties
link
link:
string
A link that is displayed along side the configured message.
message
message:
string
A message to display.
Methods
toJSON()
toJSON():
object
Converts this ErrorMessage to JSON.
Returns
object
JSON object
create()
Call Signature
staticcreate(properties?):ErrorMessage&$Properties
Creates a new ErrorMessage instance using the specified properties.
Parameters
properties?
Properties to set
Returns
ErrorMessage & $Properties
ErrorMessage instance
Call Signature
staticcreate(properties?):ErrorMessage
Creates a new ErrorMessage instance using the specified properties.
Parameters
properties?
Properties to set
Returns
ErrorMessage
ErrorMessage instance
decode()
staticdecode(reader,length?):ErrorMessage&$Properties
Decodes an ErrorMessage 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
ErrorMessage & $Properties
ErrorMessage
Throws
If the payload is not a reader or valid buffer
Throws
If required fields are missing
decodeDelimited()
staticdecodeDelimited(reader):ErrorMessage&$Properties
Decodes an ErrorMessage message from the specified reader or buffer, length delimited.
Parameters
reader
Uint8Array<ArrayBufferLike> | Reader
Reader or buffer to decode from
Returns
ErrorMessage & $Properties
ErrorMessage
Throws
If the payload is not a reader or valid buffer
Throws
If required fields are missing
encode()
staticencode(message,writer?):Writer
Encodes the specified ErrorMessage message. Does not implicitly temporal.api.cloud.namespace.v1.CodecServerSpec.CustomErrorMessage.ErrorMessage.verify|verify messages.
Parameters
message
ErrorMessage message or plain object to encode
writer?
Writer
Writer to encode to
Returns
Writer
Writer
encodeDelimited()
staticencodeDelimited(message,writer?):Writer
Encodes the specified ErrorMessage message, length delimited. Does not implicitly temporal.api.cloud.namespace.v1.CodecServerSpec.CustomErrorMessage.ErrorMessage.verify|verify messages.