Class: Debugger::XmlPrinter::ExceptionProxy

Inherits:
Object
  • Object
show all
Defined in:
lib/ruby-debug-ide/xml_printer.rb

Instance Method Summary collapse

Constructor Details

#initialize(exception) ⇒ ExceptionProxy

Returns a new instance of ExceptionProxy.



10
11
12
13
14
# File 'lib/ruby-debug-ide/xml_printer.rb', line 10

def initialize(exception)
  @exception = exception
  @message = exception.message
  @backtrace = Debugger.cleanup_backtrace(exception.backtrace)
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(called, *args, &block) ⇒ Object (private)



17
18
19
# File 'lib/ruby-debug-ide/xml_printer.rb', line 17

def method_missing(called, *args, &block) 
  @exception.__send__(called, *args, &block) 
end