Exception: AWS::Core::OptionGrammar::FormatError
- Inherits:
-
ArgumentError
- Object
- ArgumentError
- AWS::Core::OptionGrammar::FormatError
- Defined in:
- lib/aws/core/option_grammar.rb
Instance Attribute Summary collapse
-
#context_description ⇒ Object
Returns the value of attribute context_description.
-
#expectation ⇒ Object
Returns the value of attribute expectation.
Instance Method Summary collapse
-
#initialize(expectation, context) ⇒ FormatError
constructor
A new instance of FormatError.
- #to_s ⇒ Object
Constructor Details
#initialize(expectation, context) ⇒ FormatError
Returns a new instance of FormatError.
32 33 34 35 |
# File 'lib/aws/core/option_grammar.rb', line 32 def initialize(expectation, context) @expectation = expectation @context_description = context end |
Instance Attribute Details
#context_description ⇒ Object
Returns the value of attribute context_description.
30 31 32 |
# File 'lib/aws/core/option_grammar.rb', line 30 def context_description @context_description end |
#expectation ⇒ Object
Returns the value of attribute expectation.
29 30 31 |
# File 'lib/aws/core/option_grammar.rb', line 29 def expectation @expectation end |
Instance Method Details
#to_s ⇒ Object
37 38 39 |
# File 'lib/aws/core/option_grammar.rb', line 37 def to_s "expected #{expectation} for #{context_description}" end |