mangadap.util.exception_tools module

Provides a set of tools that the MaNGA DAP uses to handle/report raised exceptions.

Revision history

2015: Original implementation by K. Westfall (KBW)
20 May 2015: (KBW) Documentation and Sphinx tests
03 Feb 2016: (KBW) Added check_environment_variable()


Copyright © 2019, SDSS-IV/MaNGA Pipeline Group


Check for the existence of an environment variable.

Parameters:name (str) – Name of a required environmental variable
Raises:EnvironmentError – Raised if name is not defined.

Print the frame stack.

Parameters:prefix (str) – Prefix (typically the exception type) for the printed statement