Exception: WT::ExpectedCodeNotFoundException

Inherits:
Exception
  • Object
show all
Defined in:
lib/assertion.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#codeObject (readonly)

Returns the value of attribute code.



178
179
180
# File 'lib/assertion.rb', line 178

def code
  @code
end

#expected_codesObject (readonly)

Returns the value of attribute expected_codes.



177
178
179
# File 'lib/assertion.rb', line 177

def expected_codes
  @expected_codes
end