Class: Roby::BacktraceFormatter

Inherits:
Object
  • Object
show all
Defined in:
lib/roby/exceptions.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(exception, backtrace = exception.backtrace) ⇒ BacktraceFormatter

Returns a new instance of BacktraceFormatter.



427
428
429
430
# File 'lib/roby/exceptions.rb', line 427

def initialize(exception, backtrace = exception.backtrace)
    @exception = exception
    @backtrace = backtrace
end

Instance Attribute Details

#backtraceObject (readonly)

Returns the value of attribute backtrace.



426
427
428
# File 'lib/roby/exceptions.rb', line 426

def backtrace
  @backtrace
end

Instance Method Details

#full_messageObject



431
432
433
# File 'lib/roby/exceptions.rb', line 431

def full_message
    @exception.full_message
end

#pretty_print(pp) ⇒ Object



435
436
437
# File 'lib/roby/exceptions.rb', line 435

def pretty_print(pp)
    Roby.pretty_print_backtrace(pp, backtrace)
end