MCPcopy Index your code
hub / github.com/aws/aws-cli / GeneralExceptionHandler

Class GeneralExceptionHandler

awscli/errorhandler.py:391–399  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

389
390
391class 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
402class ChainedExceptionHandler(BaseExceptionHandler):

Calls

no outgoing calls

Tested by

no test coverage detected