Exception: PgEventstore::WrongExpectedRevisionError
- Defined in:
- lib/pg_eventstore/errors.rb
Instance Attribute Summary collapse
-
#expected_revision ⇒ Object
Returns the value of attribute expected_revision.
-
#revision ⇒ Object
Returns the value of attribute revision.
-
#stream ⇒ Object
Returns the value of attribute stream.
Instance Method Summary collapse
-
#initialize(revision:, expected_revision:, stream:) ⇒ WrongExpectedRevisionError
constructor
A new instance of WrongExpectedRevisionError.
Methods inherited from Error
Constructor Details
#initialize(revision:, expected_revision:, stream:) ⇒ WrongExpectedRevisionError
Returns a new instance of WrongExpectedRevisionError.
62 63 64 65 66 67 |
# File 'lib/pg_eventstore/errors.rb', line 62 def initialize(revision:, expected_revision:, stream:) @revision = revision @expected_revision = expected_revision @stream = stream super() end |
Instance Attribute Details
#expected_revision ⇒ Object
Returns the value of attribute expected_revision.
57 58 59 |
# File 'lib/pg_eventstore/errors.rb', line 57 def expected_revision @expected_revision end |
#revision ⇒ Object
Returns the value of attribute revision.
54 55 56 |
# File 'lib/pg_eventstore/errors.rb', line 54 def revision @revision end |
#stream ⇒ Object
Returns the value of attribute stream.
51 52 53 |
# File 'lib/pg_eventstore/errors.rb', line 51 def stream @stream end |