Exception: Screenplay::WrongResponseCodeException

Inherits:
StandardError
  • Object
show all
Defined in:
lib/screenplay/actors/api.rb

Instance Method Summary collapse

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