Exception: WT::UnexpectedBodyPartFoundException

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(body_part) ⇒ UnexpectedBodyPartFoundException

Returns a new instance of UnexpectedBodyPartFoundException.



243
244
245
246
# File 'lib/assertion.rb', line 243

def initialize(body_part)
    super("Unexpected body part was found.")
    @body_part = body_part
end

Instance Attribute Details

#body_partObject (readonly)

Returns the value of attribute body_part.



241
242
243
# File 'lib/assertion.rb', line 241

def body_part
  @body_part
end