Exception: StandardError
- Inherits:
-
Exception
- Object
- Exception
- StandardError
- Defined in:
- lib/foghorn/exceptions/standard_error.rb
Instance Method Summary collapse
Instance Method Details
#to_s(*args) ⇒ Object
3 4 5 6 7 8 9 10 11 |
# 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 |