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