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

Method _do_handle_exception

awscli/errorhandler.py:259–274  ·  view source on GitHub ↗
(self, exception, stdout, stderr, **kwargs)

Source from the content-addressed store, hash-verified

257 RC = CLIENT_ERROR_RC
258
259 def _do_handle_exception(self, exception, stdout, stderr, **kwargs):
260 parsed_globals = kwargs.get('parsed_globals')
261 error_info = self._extract_error_info(exception)
262
263 if error_info:
264 formatted_message = self._get_formatted_message(
265 error_info, exception
266 )
267 displayed_structured = self._display_structured_error(
268 error_info, formatted_message, stderr, parsed_globals
269 )
270 if displayed_structured:
271 return self.RC
272
273 write_error(stderr, str(exception))
274 return self.RC
275
276 def _get_formatted_message(self, error_info, exception):
277 return str(exception)

Callers

nothing calls this directly

Calls 4

_extract_error_infoMethod · 0.95
write_errorFunction · 0.90

Tested by

no test coverage detected