Error Utilities
Module: ppc_robot_lib.utils.errors
- get_cause(exc)[source]
Gets exception that caused the given exception (stored in
__cause__
). If the caused is not set for the input exception, the exception itself will be returned.- Parameters:
exc (
BaseException
) – Input exception.- Return type:
- Returns:
Exception that caused the exception.