Exception: Mappum::MapMissingException

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/mappum/ruby_transform.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(from, msg = nil) ⇒ MapMissingException

Returns a new instance of MapMissingException.



17
18
19
20
21
# File 'lib/mappum/ruby_transform.rb', line 17

def initialize(from, msg=nil)
  msg ||= "Map for class \"#{from.class}\" not found!"
  super(msg)
  @from = from
end

Instance Attribute Details

#fromObject

Returns the value of attribute from.



16
17
18
# File 'lib/mappum/ruby_transform.rb', line 16

def from
  @from
end