Exception: Nagios::MkLiveStatus::Exception

Inherits:
Exception
  • Object
show all
Includes:
Nagios::MkLiveStatus
Defined in:
lib/nagios_mklivestatus/exception.rb

Overview

General Exception for nagios. Add logging error when raised

Author

Esco-lan Team ([email protected])

Copyright

Copyright © 2012 GIP RECIA

License

General Public Licence

Direct Known Subclasses

QueryException, RequestException

Instance Method Summary collapse

Methods included from Nagios::MkLiveStatus

init, #logger

Constructor Details

#initialize(msg = nil) ⇒ Exception

Returns a new instance of Exception.



12
13
14
15
# File 'lib/nagios_mklivestatus/exception.rb', line 12

def initialize(msg=nil)
  super(msg)
  logger.error(msg)
end