Exception: Mappum::MapMissingException

Inherits:
MappumException show all
Defined in:
lib/mappum/ruby_transform.rb

Instance Attribute Summary collapse

Attributes inherited from MappumException

#caused_by, #from_name, #from_root, #mappum_backtrace, #to, #to_name, #to_root

Instance Method Summary collapse

Methods inherited from MappumException

#wrap

Constructor Details

#initialize(from, msg = nil) ⇒ MapMissingException

Returns a new instance of MapMissingException.



298
299
300
301
302
# File 'lib/mappum/ruby_transform.rb', line 298

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.



297
298
299
# File 'lib/mappum/ruby_transform.rb', line 297

def from
  @from
end