nexusrpc.HandlerError

Initialize a new HandlerError.

Parameters
message:strA descriptive message for the error.
type:HandlerErrorType | strThe HandlerErrorType of the error, or a string representation of the error type. If a string is provided and doesn't match a known error type, it will be treated as UNKNOWN and a warning will be logged.
retryable_override:bool | NoneOptionally set whether the error should be retried. By default, the error type is used to determine this.
stack_trace:str | NoneAn optional stack trace string.
original_failure:Failure | NoneSet if this error is constructed from a failure object.