Exception: WT::UnexpectedBodyException

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(body) ⇒ UnexpectedBodyException

Returns a new instance of UnexpectedBodyException.



225
226
227
228
# File 'lib/assertion.rb', line 225

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

Instance Attribute Details

#bodyObject (readonly)

Returns the value of attribute body.



223
224
225
# File 'lib/assertion.rb', line 223

def body
  @body
end