| 389 | |
| 390 | |
| 391 | class GeneralExceptionHandler(FilteredExceptionHandler): |
| 392 | EXCEPTIONS_TO_HANDLE = Exception |
| 393 | RC = GENERAL_ERROR_RC |
| 394 | |
| 395 | def _do_handle_exception(self, exception, stdout, stderr, **kwargs): |
| 396 | # Generic exceptions don't have meaningful structure, |
| 397 | # so always use plain text formatting |
| 398 | write_error(stderr, str(exception)) |
| 399 | return self.RC |
| 400 | |
| 401 | |
| 402 | class ChainedExceptionHandler(BaseExceptionHandler): |
no outgoing calls
no test coverage detected