Optional ReadonlycauseOptional ReadonlycodeReadonlyjsonOptional ReadonlymetadataConverts the error to a formatted string representation.
Optionalmultiline: boolean
Determine if output value must be multiline or not.
A formatted error string.
StaticcreateCreate a RuntimeError.
Optionaloptions: ErrorOptions
The options to create a RuntimeError.
A new RuntimeError instance.
Raised when a message cannot be answered at the protocol level.
Deliberately rare. A malformed envelope, an unknown method, arguments that are not an object: the cases where there is no result to speak of. Everything a tool itself does wrong travels back as a result, not as one of these.