Exception: WT::ExpectedCodeNotFoundException
- Inherits:
-
Exception
- Object
- Exception
- WT::ExpectedCodeNotFoundException
- Defined in:
- lib/assertion.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#expected_codes ⇒ Object
readonly
Returns the value of attribute expected_codes.
Instance Method Summary collapse
-
#initialize(expected_codes, code) ⇒ ExpectedCodeNotFoundException
constructor
A new instance of ExpectedCodeNotFoundException.
Constructor Details
#initialize(expected_codes, code) ⇒ ExpectedCodeNotFoundException
180 181 182 183 |
# File 'lib/assertion.rb', line 180 def initialize(expected_codes, code) super("Expected code (#{expected_codes.join(' or ')}) not found in response. Code found was: #{code}") @code = code end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
178 179 180 |
# File 'lib/assertion.rb', line 178 def code @code end |
#expected_codes ⇒ Object (readonly)
Returns the value of attribute expected_codes.
177 178 179 |
# File 'lib/assertion.rb', line 177 def expected_codes @expected_codes end |