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



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

#originalStandardError

Returns original exception.

Returns:

  • (StandardError)

    original exception



169
170
171
# File 'lib/elecksee/helpers.rb', line 169

def original
  @original
end

#resultObject

Returns command result.

Returns:

  • (Object)

    command result



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

def result
  @result
end