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)


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

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



70
71
72
# File 'lib/osctld/exceptions.rb', line 70

def exception
  @exception
end

#poolObject (readonly)

Returns the value of attribute pool



70
71
72
# File 'lib/osctld/exceptions.rb', line 70

def pool
  @pool
end