Exception: LSync::Error
- Inherits:
-
StandardError
- Object
- StandardError
- LSync::Error
- Defined in:
- lib/lsync/error.rb
Overview
Base exception class which keeps track of related components.
Direct Known Subclasses
AbsolutePathError, BackupMethodError, CommandFailure, LockError, ScriptError
Instance Attribute Summary collapse
-
#components ⇒ Object
readonly
Returns the value of attribute components.
-
#reason ⇒ Object
readonly
Returns the value of attribute reason.
Instance Method Summary collapse
-
#initialize(reason, components = {}) ⇒ Error
constructor
A new instance of Error.
- #to_s ⇒ Object
Constructor Details
#initialize(reason, components = {}) ⇒ Error
Returns a new instance of Error.
25 26 27 28 |
# File 'lib/lsync/error.rb', line 25 def initialize(reason, components = {}) @reason = reason @components = components end |
Instance Attribute Details
#components ⇒ Object (readonly)
Returns the value of attribute components.
35 36 37 |
# File 'lib/lsync/error.rb', line 35 def components @components end |
#reason ⇒ Object (readonly)
Returns the value of attribute reason.
34 35 36 |
# File 'lib/lsync/error.rb', line 34 def reason @reason end |
Instance Method Details
#to_s ⇒ Object
30 31 32 |
# File 'lib/lsync/error.rb', line 30 def to_s @reason end |