Exception: Lxc::CommandFailed

Inherits:
StandardError
  • Object
show all
Defined in:
lib/elecksee/helpers.rb

Overview

Command failure class

Direct Known Subclasses

Timeout

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(orig, result = nil) ⇒ CommandFailed

Create new instance

Parameters:

  • orig (StandardError)

    original exception

  • result (Object) (defaults to: nil)

    command result



170
171
172
173
174
# File 'lib/elecksee/helpers.rb', line 170

def initialize(orig, result=nil)
  @original = orig
  @result = result
  super(orig.to_s)
end

Instance Attribute Details

#originalStandardError

Returns original exception.

Returns:

  • (StandardError)

    original exception



162
163
164
# File 'lib/elecksee/helpers.rb', line 162

def original
  @original
end

#resultObject

Returns command result.

Returns:

  • (Object)

    command result



164
165
166
# File 'lib/elecksee/helpers.rb', line 164

def result
  @result
end