Exception: Ant::Server::Nanoservice::Datasource::Exceptions::ObjectAlreadyExists

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, object) ⇒ ObjectAlreadyExists

Returns a new instance of ObjectAlreadyExists.



8
9
10
11
# File 'lib/ant/server/nanoservice/datasource/exceptions.rb', line 8

def initialize(id, object)
  @id = id
  super("Object #{id} already exists", nil, object)
end

Instance Attribute Details

#idObject (readonly)

Returns the value of attribute id.



7
8
9
# File 'lib/ant/server/nanoservice/datasource/exceptions.rb', line 7

def id
  @id
end