Exception: PgEventstore::RecordNotFound
- Defined in:
- lib/pg_eventstore/errors.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#table_name ⇒ Object
Returns the value of attribute table_name.
Instance Method Summary collapse
-
#initialize(table_name, id) ⇒ RecordNotFound
constructor
A new instance of RecordNotFound.
- #user_friendly_message ⇒ String
Methods inherited from Error
Constructor Details
#initialize(table_name, id) ⇒ RecordNotFound
Returns a new instance of RecordNotFound.
121 122 123 124 125 |
# File 'lib/pg_eventstore/errors.rb', line 121 def initialize(table_name, id) @table_name = table_name @id = id super() end |
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id.
117 118 119 |
# File 'lib/pg_eventstore/errors.rb', line 117 def id @id end |
#table_name ⇒ Object
Returns the value of attribute table_name.
114 115 116 |
# File 'lib/pg_eventstore/errors.rb', line 114 def table_name @table_name end |
Instance Method Details
#user_friendly_message ⇒ String
128 129 130 |
# File 'lib/pg_eventstore/errors.rb', line 128 def "Could not find/update #{table_name.inspect} record with #{id.inspect} id." end |