Class: Kybus::Storage::Exceptions::ObjectNotFound

Inherits:
Exceptions::KybusFail
  • Object
show all
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

Instance Method Summary collapse

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

#idObject (readonly)

Returns the value of attribute id.



28
29
30
# File 'lib/kybus/storage/datasource/exceptions.rb', line 28

def id
  @id
end