Source code for icolos.utils.general.icolos_exceptions [docs]class ExecutionFailed(Exception): pass [docs]class StepFailed(Exception): pass [docs]class ContainerCorrupted(Exception): pass [docs]def get_exception_message(e: Exception): if e is None: return None if hasattr(e, "message"): return e.message else: return e [docs]def get_exception_type(e: Exception) -> str: if e is None: return None return type(e).__name__