exception documentation

class PulsarException(BaseException): (source)

Constructor: PulsarException(result)

View In Hierarchy

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 _result Undocumented
def __init__(self, result: pulsar.Result): (source)

Create the Pulsar exception.

Parameters
result:pulsar.ResultThe error code of the underlying Pulsar APIs.
def __str__(self): (source)

Convert the exception to string.

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

Returns the Pulsar error code.

Undocumented