Exception: PgEventstore::RecordNotFound
- Defined in:
- lib/pg_eventstore/errors.rb,
sig/pg_eventstore/errors.rbs
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#table_name ⇒ String
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.
244 245 246 247 248 |
# File 'lib/pg_eventstore/errors.rb', line 244 def initialize(table_name, id) @table_name = table_name @id = id super() end |
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id.
240 241 242 |
# File 'lib/pg_eventstore/errors.rb', line 240 def id @id end |
#table_name ⇒ String
Returns the value of attribute table_name.
237 238 239 |
# File 'lib/pg_eventstore/errors.rb', line 237 def table_name @table_name end |
Instance Method Details
#user_friendly_message ⇒ String
251 252 253 |
# File 'lib/pg_eventstore/errors.rb', line 251 def "Could not find/update/delete #{table_name.inspect} record by #{@id.inspect}." end |