Exception: Mokio::Exceptions::IsNotAMokioContentError
- Inherits:
-
IsNotObj
- Object
- StandardError
- MokioError
- IsNotObj
- Mokio::Exceptions::IsNotAMokioContentError
- Defined in:
- lib/mokio/exceptions.rb
Overview
Exception used when given object was not Mokio::Content type
Instance Attribute Summary
Attributes inherited from IsNotObj
Attributes inherited from MokioError
Instance Method Summary collapse
-
#initialize(obj) ⇒ IsNotAMokioContentError
constructor
Constructs a IsNotAMokioContentError exception.
Methods inherited from MokioError
Constructor Details
#initialize(obj) ⇒ IsNotAMokioContentError
Constructs a IsNotAMokioContentError exception
Attributes
-
obj
- Some obj you are checking
91 92 93 94 |
# File 'lib/mokio/exceptions.rb', line 91 def initialize(obj) @message = "#{obj} is not a Mokio::Content object" @obj = obj end |