class Exception

Public Instance Methods

pretty_print(q) click to toggle source
# File lib/rbot/ircbot.rb, line 14
def pretty_print(q)
  q.group(1, "#<%s: %s" % [self.class, self.message], ">") {
    if self.backtrace and not self.backtrace.empty?
      q.text "\n"
      q.seplist(self.backtrace, lambda { q.text "\n" } ) { |l| q.text l }
    end
  }
end