Method: Gin::Errorable::ClassMethods#all_errors
- Defined in:
- lib/gin/errorable.rb
#all_errors(&block) ⇒ Object
Run after an error has been raised and optionally handled by an error callback. The block will get run on all errors and is given the exception instance as an argument. Note: This block will not get run after http status error handlers.
57 58 59 60 |
# File 'lib/gin/errorable.rb', line 57 def all_errors &block return unless block_given? self.error_handlers[:all] = block end |