Exception: OsCtld::PoolUpgradeError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/osctld/exceptions.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(pool, exception) ⇒ PoolUpgradeError

Returns a new instance of PoolUpgradeError

Parameters:

  • pool (String)
  • exception (Exception)


66
67
68
69
70
71
# File 'lib/osctld/exceptions.rb', line 66

def initialize(pool, exception)
  @pool = pool
  @exception = exception

  super("unable to upgrade pool #{pool}: #{exception.message}")
end

Instance Attribute Details

#exceptionObject (readonly)

Returns the value of attribute exception



62
63
64
# File 'lib/osctld/exceptions.rb', line 62

def exception
  @exception
end

#poolObject (readonly)

Returns the value of attribute pool



62
63
64
# File 'lib/osctld/exceptions.rb', line 62

def pool
  @pool
end