Exception: WT::ExpectedBodyNotFoundException

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(body) ⇒ ExpectedBodyNotFoundException

Returns a new instance of ExpectedBodyNotFoundException.



216
217
218
219
# File 'lib/assertion.rb', line 216

def initialize(body)
    super("Expected body was not found in response.")
    @body = body
end

Instance Attribute Details

#bodyObject (readonly)

Returns the value of attribute body.



214
215
216
# File 'lib/assertion.rb', line 214

def body
  @body
end