Exception: OsUp::PoolInUse

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(pool_migrations) ⇒ PoolInUse

Returns a new instance of PoolInUse.



27
28
29
30
31
32
# File 'lib/osup/exceptions.rb', line 27

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

  super("#{pool} is already initialized")
end

Instance Attribute Details

#poolObject (readonly)

Returns the value of attribute pool.



25
26
27
# File 'lib/osup/exceptions.rb', line 25

def pool
  @pool
end

#pool_migrationsObject (readonly)

Returns the value of attribute pool_migrations.



25
26
27
# File 'lib/osup/exceptions.rb', line 25

def pool_migrations
  @pool_migrations
end