Exception: Ant::Server::Nanoservice::Datasource::Exceptions::ObjectNotFound

Inherits:
Exceptions::AntFail show all
Defined in:
lib/ant/server/nanoservice/datasource/exceptions.rb

Instance Attribute Summary collapse

Attributes inherited from Exceptions::AntBaseException

#code, #data, #message

Instance Method Summary collapse

Constructor Details

#initialize(id) ⇒ ObjectNotFound

Returns a new instance of ObjectNotFound.



23
24
25
26
# File 'lib/ant/server/nanoservice/datasource/exceptions.rb', line 23

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.



22
23
24
# File 'lib/ant/server/nanoservice/datasource/exceptions.rb', line 22

def id
  @id
end