Exception: Lxc::CommandFailed
- Inherits:
-
StandardError
- Object
- StandardError
- Lxc::CommandFailed
- Defined in:
- lib/elecksee/helpers.rb
Overview
Command failure class
Direct Known Subclasses
Instance Attribute Summary collapse
-
#original ⇒ StandardError
Original exception.
-
#result ⇒ Object
Command result.
Instance Method Summary collapse
-
#initialize(orig, result = nil) ⇒ CommandFailed
constructor
Create new instance.
Constructor Details
#initialize(orig, result = nil) ⇒ CommandFailed
Create new instance
177 178 179 180 181 |
# File 'lib/elecksee/helpers.rb', line 177 def initialize(orig, result=nil) @original = orig @result = result super(orig.to_s) end |
Instance Attribute Details
#original ⇒ StandardError
Returns original exception.
169 170 171 |
# File 'lib/elecksee/helpers.rb', line 169 def original @original end |
#result ⇒ Object
Returns command result.
171 172 173 |
# File 'lib/elecksee/helpers.rb', line 171 def result @result end |