exception documentation

The exception that wraps the Pulsar error code

Method __init__ Create the Pulsar exception.
Method __str__ Convert the exception to string.
Method error Returns the Pulsar error code.
Instance Variable _msg Undocumented
Instance Variable _result Undocumented
def __init__(self, result: pulsar.Result, msg: str | None = None): (source)

Create the Pulsar exception.

Parameters
result:pulsar.ResultThe error code of the underlying Pulsar APIs.
msg:str|
None
An optional error message providing more details.
def __str__(self): (source)

Convert the exception to string.

def error(self) -> pulsar.Result: (source)

Returns the Pulsar error code.

Undocumented

Undocumented