Exception: WT::UnexpectedBodyException
- Inherits:
-
Exception
- Object
- Exception
- WT::UnexpectedBodyException
- Defined in:
- lib/assertion.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
Instance Method Summary collapse
-
#initialize(body) ⇒ UnexpectedBodyException
constructor
A new instance of UnexpectedBodyException.
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
#body ⇒ Object (readonly)
Returns the value of attribute body.
223 224 225 |
# File 'lib/assertion.rb', line 223 def body @body end |