class_docstr: The exception that wraps the Pulsar error code
class_docstr_tok: ["The","exception","that","wraps","the","Pulsar","error","code"]
docstr: Returns the Pulsar error code.
docstr_tok: ["Returns","the","Pulsar","error","code","."]
code: def error(self) -> pulsar.Result:
      """
      Returns the Pulsar error code.
      """
      return self._result
  
file_path: pulsar-client-python/pulsar/asyncio.py
imports: import asyncio
  import functools
  from typing import Any
  import _pulsar
  import pulsar
label_desc: Use image node_id 2 for calling the PulsarException obj's underlying member method code with example usage: obj.error() and returns: self