Exception: PgEventstore::NotPersistedEventError
- Defined in:
- lib/pg_eventstore/errors.rb,
sig/pg_eventstore/errors.rbs
Instance Attribute Summary collapse
-
#event ⇒ PgEventstore::Event
Returns the value of attribute event.
Instance Method Summary collapse
-
#initialize(event) ⇒ NotPersistedEventError
constructor
@param
event. - #user_friendly_message ⇒ String
Methods inherited from Error
Constructor Details
#initialize(event) ⇒ NotPersistedEventError
@param event
322 323 324 325 |
# File 'lib/pg_eventstore/errors.rb', line 322 def initialize(event) @event = event super() end |
Instance Attribute Details
#event ⇒ PgEventstore::Event
Returns the value of attribute event.
319 320 321 |
# File 'lib/pg_eventstore/errors.rb', line 319 def event @event end |
Instance Method Details
#user_friendly_message ⇒ String
328 329 330 |
# File 'lib/pg_eventstore/errors.rb', line 328 def "Event #{event.inspect} is not persisted a persisted event." end |