Exception: ActiveGraph::RecordNotFound
- Defined in:
- lib/active_graph/error.rb
Overview
Raised when Neo4j.rb cannot find record by given id.
Direct Known Subclasses
Node::Labels::RecordNotFound, ActiveGraph::Relationship::Query::RecordNotFound
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#model ⇒ Object
readonly
Returns the value of attribute model.
-
#primary_key ⇒ Object
readonly
Returns the value of attribute primary_key.
Instance Method Summary collapse
-
#initialize(message = nil, model = nil, primary_key = nil, id = nil) ⇒ RecordNotFound
constructor
A new instance of RecordNotFound.
Constructor Details
#initialize(message = nil, model = nil, primary_key = nil, id = nil) ⇒ RecordNotFound
Returns a new instance of RecordNotFound.
11 12 13 14 15 16 17 |
# File 'lib/active_graph/error.rb', line 11 def initialize( = nil, model = nil, primary_key = nil, id = nil) @primary_key = primary_key @model = model @id = id super() end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
9 10 11 |
# File 'lib/active_graph/error.rb', line 9 def id @id end |
#model ⇒ Object (readonly)
Returns the value of attribute model.
9 10 11 |
# File 'lib/active_graph/error.rb', line 9 def model @model end |
#primary_key ⇒ Object (readonly)
Returns the value of attribute primary_key.
9 10 11 |
# File 'lib/active_graph/error.rb', line 9 def primary_key @primary_key end |