Module: Nyanko::ExceptionHandler

Defined in:
lib/nyanko/exception_handler.rb

Class Method Summary collapse

Class Method Details

.handle(exception, unit = nil) ⇒ Object



4
5
6
7
# File 'lib/nyanko/exception_handler.rb', line 4

def handle(exception, unit = nil)
  Logger.debug(exception)
  raise exception if unit.try(:raise_error?) || Config.raise_error
end