Exception: Mokio::Exceptions::IsNotAMokioMenuError

Inherits:
IsNotObj show all
Defined in:
lib/mokio/exceptions.rb

Overview

Exception used when given object was not Mokio::Menu type

Instance Attribute Summary

Attributes inherited from IsNotObj

#obj

Attributes inherited from MokioError

#message

Instance Method Summary collapse

Methods inherited from MokioError

#to_s

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