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.



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

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)



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

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