Exception: StandardError

Inherits:
Exception
  • Object
show all
Defined in:
lib/card/error.rb

Direct Known Subclasses

Card::Error, Card::Error::Abort

Constant Summary collapse

MAX_BACKTRACE_LINES =
20

Instance Method Summary collapse

Instance Method Details

#reportObject



6
7
8
9
# File 'lib/card/error.rb', line 6

def report
  Rails.logger.info "exception = #{self.class}: #{message}"
  Rails.logger.debug backtrace[0..MAX_BACKTRACE_LINES].join("\n")
end