Exception: Mokio::Exceptions::IsNotAMokioContentError

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

Overview

Exception used when given object was not Mokio::Content 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) ⇒ 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