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)


81
82
83
84
85
86
# File 'lib/osctld/exceptions.rb', line 81

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.



77
78
79
# File 'lib/osctld/exceptions.rb', line 77

def exception
  @exception
end

#poolObject (readonly)

Returns the value of attribute pool.



77
78
79
# File 'lib/osctld/exceptions.rb', line 77

def pool
  @pool
end