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

Function construct_cli_error_handlers_chain

awscli/errorhandler.py:116–130  ·  view source on GitHub ↗
(session=None)

Source from the content-addressed store, hash-verified

114
115
116def construct_cli_error_handlers_chain(session=None):
117 # UnknownArgumentErrorHandler and InterruptExceptionHandler are
118 # intentionally excluded from structured formatting
119 handlers = [
120 ParamValidationErrorsHandler(session),
121 UnknownArgumentErrorHandler(),
122 ConfigurationErrorHandler(session),
123 NoRegionErrorHandler(session),
124 NoCredentialsErrorHandler(session),
125 PagerErrorHandler(session),
126 InterruptExceptionHandler(),
127 ClientErrorHandler(session),
128 GeneralExceptionHandler(session),
129 ]
130 return ChainedExceptionHandler(exception_handlers=handlers)
131
132
133class BaseExceptionHandler: