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.



502
503
504
505
# File 'lib/roby/exceptions.rb', line 502

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

Instance Attribute Details

#backtraceObject (readonly)

Returns the value of attribute backtrace.



500
501
502
# File 'lib/roby/exceptions.rb', line 500

def backtrace
  @backtrace
end

Instance Method Details

#full_messageObject



507
508
509
# File 'lib/roby/exceptions.rb', line 507

def full_message
    @exception.full_message
end

#pretty_print(pp) ⇒ Object



511
512
513
# File 'lib/roby/exceptions.rb', line 511

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