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

Class ParamError

awscli/argprocess.py:31–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29
30
31class ParamError(Exception):
32 def __init__(self, cli_name, message):
33 """
34
35 :type cli_name: string
36 :param cli_name: The complete cli argument name,
37 e.g. "--foo-bar". It should include the leading
38 hyphens if that's how a user would specify the name.
39
40 :type message: string
41 :param message: The error message to display to the user.
42
43 """
44 full_message = "Error parsing parameter '%s': %s" % (cli_name, message)
45 super(ParamError, self).__init__(full_message)
46 self.cli_name = cli_name
47 self.message = message
48
49
50class ParamSyntaxError(Exception):

Callers 7

_load_parametersMethod · 0.90
_load_parametersMethod · 0.90
_unpack_json_cli_argFunction · 0.85
_unpack_complex_cli_argFunction · 0.85
unpack_scalar_cli_argFunction · 0.85
_parse_as_shorthandMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected