Exception: OsUp::PoolIncompatible

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(pool_migrations) ⇒ PoolIncompatible

Returns a new instance of PoolIncompatible.



5
6
7
8
9
10
# File 'lib/osup/exceptions.rb', line 5

def initialize(pool_migrations)
  @pool = pool_migrations.pool
  @pool_migrations = pool_migrations

  super("#{pool} is in an incompatible state and cannot be upgraded")
end

Instance Attribute Details

#poolObject (readonly)

Returns the value of attribute pool.



3
4
5
# File 'lib/osup/exceptions.rb', line 3

def pool
  @pool
end

#pool_migrationsObject (readonly)

Returns the value of attribute pool_migrations.



3
4
5
# File 'lib/osup/exceptions.rb', line 3

def pool_migrations
  @pool_migrations
end