Exception: Screenplay::WrongResponseCodeException
- Inherits:
-
StandardError
- Object
- StandardError
- Screenplay::WrongResponseCodeException
- Defined in:
- lib/screenplay/actors/api.rb
Instance Method Summary collapse
-
#initialize(expected, actual, body) ⇒ WrongResponseCodeException
constructor
A new instance of WrongResponseCodeException.
Constructor Details
#initialize(expected, actual, body) ⇒ WrongResponseCodeException
Returns a new instance of WrongResponseCodeException.
7 8 9 |
# File 'lib/screenplay/actors/api.rb', line 7 def initialize(expected, actual, body) super("Expected HTTP response code #{expected}, but received #{actual}. Response body was: #{body}") end |