Mercury2 Hardware Manager  1.0dev
The hardware manager component of the Mercury2 ground station suite.
 All Classes Namespaces Functions Variables Pages
hwm.core.errors Namespace Reference

Contains general error handling functions. More...

Functions

def uncaught_exception
 Handles previously uncaught exceptions. More...
 

Detailed Description

Contains general error handling functions.

This module contains assorted error handling functions. These functions are typically used to handle top-level hardware manager exceptions (such as a previously uncaught exceptions).

Function Documentation

def hwm.core.errors.uncaught_exception (   type,
  value,
  tb 
)

Handles previously uncaught exceptions.

This method is used to handle top-level uncaught exceptions. It exits the program with an error code if such an exception is encountered.

Note
This function logs all uncaught exceptions to the application logs, which are set up in hwm.application.core.initialization. If the logs haven't been set up (i.e. the exception was generated early on) the default log settings will be used.
Parameters
typeThe exception type.
valueThe exception descriptive text.
tbThe complete traceback for the provided exception.