Exception: SwitchmanInstJobs::ShardNotFoundError

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/switchman_inst_jobs/delayed/backend/base.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(shard_id) ⇒ ShardNotFoundError

Returns a new instance of ShardNotFoundError.



5
6
7
8
# File 'lib/switchman_inst_jobs/delayed/backend/base.rb', line 5

def initialize(shard_id)
  @shard_id = shard_id
  super("Shard not found: #{shard_id}")
end

Instance Attribute Details

#shard_idObject (readonly)

Returns the value of attribute shard_id.



3
4
5
# File 'lib/switchman_inst_jobs/delayed/backend/base.rb', line 3

def shard_id
  @shard_id
end