aspire package

Subpackages

Submodules

aspire.exceptions module

exception aspire.exceptions.AspireException

Bases: Exception

exception aspire.exceptions.DimensionsIncompatible

Bases: AspireException

exception aspire.exceptions.ErrorTooBig

Bases: AspireException

exception aspire.exceptions.UnknownFormat

Bases: AspireException

exception aspire.exceptions.WrongInput

Bases: AspireException

aspire.exceptions.handle_exception(exc_type, exc_value, exc_traceback)

Handle any top-level unhandled exception. Tries to gather and log additional context information, then re-raises.

Parameters:
  • exc_type – Exception type object

  • exc_value – Exception value object (an instance of type exc_type)

  • exc_traceback – The Traceback object associated with exc_value (also available as exc_value.__traceback__)

Returns:

On return, useful diagnostic information has been logged, and the exception re-raised.

Module contents