Exception: AWS::Core::OptionGrammar::FormatError

Inherits:
ArgumentError
  • Object
show all
Defined in:
lib/aws/core/option_grammar.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_descriptionObject

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

#expectationObject

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_sObject



37
38
39
# File 'lib/aws/core/option_grammar.rb', line 37

def to_s
  "expected #{expectation} for #{context_description}"
end