Class: Kybus::Storage::Exceptions::ObjectNotFound
- Inherits:
-
Exceptions::KybusFail
- Object
- Exceptions::KybusFail
- Kybus::Storage::Exceptions::ObjectNotFound
- Defined in:
- lib/kybus/storage/datasource/exceptions.rb
Overview
Exception used when it is requested an object that can not be found.
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
Instance Method Summary collapse
-
#initialize(id) ⇒ ObjectNotFound
constructor
A new instance of ObjectNotFound.
Constructor Details
#initialize(id) ⇒ ObjectNotFound
Returns a new instance of ObjectNotFound.
30 31 32 33 |
# File 'lib/kybus/storage/datasource/exceptions.rb', line 30 def initialize(id) @id = id super("Object #{id} does not exist", nil, id:) end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
28 29 30 |
# File 'lib/kybus/storage/datasource/exceptions.rb', line 28 def id @id end |