Class: Bio::Log::FailOnError

Inherits:
NormalUser show all
Defined in:
lib/bio/log/loggerusers.rb

Direct Known Subclasses

Developer

Instance Method Summary collapse

Methods inherited from NormalUser

#debug, #info, #warn

Instance Method Details

#error(logger, msg) ⇒ Object



31
32
33
34
# File 'lib/bio/log/loggerusers.rb', line 31

def error logger, msg
  logger.error msg
  raise FailOnErrorException,msg
end

#fatal(logger, msg) ⇒ Object



36
37
38
39
# File 'lib/bio/log/loggerusers.rb', line 36

def fatal logger, msg
  logger.fatal msg
  raise FailOnErrorException
end