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.


41
42
43
44
45
# File 'lib/ruby-debug-ide/xml_printer.rb', line 41

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)


48
49
50
# File 'lib/ruby-debug-ide/xml_printer.rb', line 48

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