Sha256: 78b0dce890168aaf7d2d27c9226f9ded83fdaf0404db5f9e21b97e487f4aa9b9

Contents?: true

Size: 435 Bytes

Versions: 2

Compression:

Stored size: 435 Bytes

Contents

module EventSourcery
  Error = Class.new(StandardError)
  UnableToLockProcessorError = Class.new(Error)
  UnableToProcessEventError = Class.new(Error)
  ConcurrencyError = Class.new(Error)
  AtomicWriteToMultipleAggregatesNotSupported = Class.new(Error)

  class EventProcessingError < Error
    attr_reader :event

    def initialize(event)
      @event = event
    end

    def message
      cause.message if cause
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
event_sourcery-0.14.0 lib/event_sourcery/errors.rb
event_sourcery-0.13.0 lib/event_sourcery/errors.rb