Exception: Moxml::VisitorMethodError

Inherits:
VisitorError show all
Defined in:
lib/moxml/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, method_name) ⇒ VisitorMethodError

Returns a new instance of VisitorMethodError.



99
100
101
102
# File 'lib/moxml/errors.rb', line 99

def initialize(message, method_name)
  @method_name = method_name
  super("#{message} (Method: #{method_name})")
end

Instance Attribute Details

#method_nameObject (readonly)

Returns the value of attribute method_name.



97
98
99
# File 'lib/moxml/errors.rb', line 97

def method_name
  @method_name
end