class StandardError

Public Instance Methods

to_s(*args) click to toggle source
Calls superclass method
# File lib/peep-show/exceptions/standard_error.rb, line 3
def to_s(*args)
  peeps_exception = "#{PeepShow::Exceptions::Base.phrase}"

  # Don't print an empty message
  if(!super.empty? && super != self.class.to_s)
    peeps_exception << "\n#{super}"
  end
  peeps_exception
end