Exception: WT::ExpectedBodyPartNotFoundException

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(body_part) ⇒ ExpectedBodyPartNotFoundException

Returns a new instance of ExpectedBodyPartNotFoundException.



234
235
236
237
# File 'lib/assertion.rb', line 234

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

Instance Attribute Details

#body_partObject (readonly)

Returns the value of attribute body_part.



232
233
234
# File 'lib/assertion.rb', line 232

def body_part
  @body_part
end