Exception: PgEventstore::NotPersistedEventError
- Defined in:
- lib/pg_eventstore/errors.rb
Instance Attribute Summary collapse
-
#event ⇒ Object
Returns the value of attribute event.
Instance Method Summary collapse
-
#initialize(event) ⇒ NotPersistedEventError
constructor
A new instance of NotPersistedEventError.
- #user_friendly_message ⇒ String
Methods inherited from Error
Constructor Details
#initialize(event) ⇒ NotPersistedEventError
199 200 201 202 |
# File 'lib/pg_eventstore/errors.rb', line 199 def initialize(event) @event = event super() end |
Instance Attribute Details
#event ⇒ Object
Returns the value of attribute event.
196 197 198 |
# File 'lib/pg_eventstore/errors.rb', line 196 def event @event end |
Instance Method Details
#user_friendly_message ⇒ String
205 206 207 |
# File 'lib/pg_eventstore/errors.rb', line 205 def "Event with #id #{event.id.inspect} must be present, but it could not be found." end |