class StandardError

Public Instance Methods

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

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