Exception: Ant::Server::Nanoservice::Datasource::Exceptions::ObjectAlreadyExists
- Inherits:
-
Exceptions::AntFail
- Object
- StandardError
- Exceptions::AntBaseException
- Exceptions::AntFail
- Ant::Server::Nanoservice::Datasource::Exceptions::ObjectAlreadyExists
- Defined in:
- lib/ant/server/nanoservice/datasource/exceptions.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
Attributes inherited from Exceptions::AntBaseException
Instance Method Summary collapse
-
#initialize(id, object) ⇒ ObjectAlreadyExists
constructor
A new instance of ObjectAlreadyExists.
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
#id ⇒ Object (readonly)
Returns the value of attribute id.
7 8 9 |
# File 'lib/ant/server/nanoservice/datasource/exceptions.rb', line 7 def id @id end |