Skip to main content

Get Exception Info

Description

Gets exception info.

Function Signature:

def get_exception_info() -> tuple[str, int] | tuple[None, None]:

Parameters

  • (None)

Returns

  • tuple[str, int] | tuple[None, None]: Return value from the function.

Example Usage

# Example usage
result = get_exception_info()
print(result)

Behavior

  • Executes the function logic with the provided arguments.
  • On success, returns the computed value or result object.

Error Handling

  • Exceptions are handled within the function where implemented.