Exception: Ant::Server::Nanoservice::Datasource::Exceptions::ObjectNotFound
- Inherits:
-
Exceptions::AntFail
- Object
- StandardError
- Exceptions::AntBaseException
- Exceptions::AntFail
- Ant::Server::Nanoservice::Datasource::Exceptions::ObjectNotFound
- 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) ⇒ ObjectNotFound
constructor
A new instance of ObjectNotFound.
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
#id ⇒ Object (readonly)
Returns the value of attribute id.
22 23 24 |
# File 'lib/ant/server/nanoservice/datasource/exceptions.rb', line 22 def id @id end |