Exception: SwitchmanInstJobs::ShardNotFoundError
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- SwitchmanInstJobs::ShardNotFoundError
- Defined in:
- lib/switchman_inst_jobs/delayed/backend/base.rb
Instance Attribute Summary collapse
-
#shard_id ⇒ Object
readonly
Returns the value of attribute shard_id.
Instance Method Summary collapse
-
#initialize(shard_id) ⇒ ShardNotFoundError
constructor
A new instance of ShardNotFoundError.
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_id ⇒ Object (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 |