Exception: Zabbix::Monitor::EmptyFileError
- Inherits:
-
StandardError
- Object
- StandardError
- Zabbix::Monitor::EmptyFileError
- Defined in:
- lib/zmonitor.rb
Instance Attribute Summary collapse
-
#message ⇒ Object
readonly
Returns the value of attribute message.
Instance Method Summary collapse
-
#initialize(reason, file) ⇒ EmptyFileError
constructor
A new instance of EmptyFileError.
Constructor Details
#initialize(reason, file) ⇒ EmptyFileError
Returns a new instance of EmptyFileError.
14 15 16 17 18 |
# File 'lib/zmonitor.rb', line 14 def initialize(reason, file) @message = reason puts "[INFO] Deleting #{file}" File.delete(file) end |
Instance Attribute Details
#message ⇒ Object (readonly)
Returns the value of attribute message.
13 14 15 |
# File 'lib/zmonitor.rb', line 13 def @message end |