Exception: StandardError
- Inherits:
-
Exception
- Object
- Exception
- StandardError
- Defined in:
- lib/card/error.rb
Direct Known Subclasses
Constant Summary collapse
- MAX_BACKTRACE_LINES =
20
Instance Method Summary collapse
Instance Method Details
#report ⇒ Object
6 7 8 9 |
# File 'lib/card/error.rb', line 6 def report Rails.logger.info "exception = #{self.class}: #{}" Rails.logger.debug backtrace[0..MAX_BACKTRACE_LINES].join("\n") end |