Exception: SystemdMon::Error
- Inherits:
-
StandardError
- Object
- StandardError
- SystemdMon::Error
- Defined in:
- lib/systemd_mon/error.rb
Overview
Save original exception for use in verbose mode
Direct Known Subclasses
MonitorError, NotificationError, NotifierDependencyError, NotifierError, SystemdError, UnknownUnitError
Instance Attribute Summary collapse
-
#original ⇒ Object
readonly
Returns the value of attribute original.
Instance Method Summary collapse
-
#initialize(msg, original = $!) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(msg, original = $!) ⇒ Error
Returns a new instance of Error.
7 8 9 10 |
# File 'lib/systemd_mon/error.rb', line 7 def initialize(msg, original=$!) super(msg) @original = original end |
Instance Attribute Details
#original ⇒ Object (readonly)
Returns the value of attribute original.
5 6 7 |
# File 'lib/systemd_mon/error.rb', line 5 def original @original end |