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

Inherits:
Exceptions::AntFail
  • 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.



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

def initialize(id)
  @id = id
  super("Object #{id} does not exist", nil, id: id)
end

Instance Attribute Details

#idObject (readonly)

Returns the value of attribute id.



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

def id
  @id
end