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

Class PagerErrorHandler

awscli/errorhandler.py:348–359  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

346
347
348class PagerErrorHandler(FilteredExceptionHandler):
349 EXCEPTIONS_TO_HANDLE = PagerInitializationException
350 RC = CONFIGURATION_ERROR_RC
351
352 def _extract_error_info(self, exception):
353 message = (
354 f'Unable to redirect output to pager. Received the '
355 f'following error when opening pager:\n{exception}\n\n'
356 f'Learn more about configuring the output pager by running '
357 f'"aws help config-vars".'
358 )
359 return {'Code': 'Pager', 'Message': message}
360
361
362class UnknownArgumentErrorHandler(FilteredExceptionHandler):

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected