Exception: Hcheck::Errors::HcheckError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/hcheck/errors.rb

Overview

Hcheck standard error class

Constant Summary collapse

MSG =
'Hcheck standard error'

Instance Method Summary collapse

Constructor Details

#initialize(msg = nil) ⇒ HcheckError

Returns a new instance of HcheckError.



9
10
11
12
13
# File 'lib/hcheck/errors.rb', line 9

def initialize(msg = nil)
  message = msg || self.class::MSG
  Hcheck.logger.error message
  super(message)
end