Exception: Funes::ConflictingActualTimeError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/funes/conflicting_actual_time_error.rb

Overview

Raised when both an explicit ‘at:` on `append` and the event’s ‘actual_time_attribute` are present with different values.

This is always a bug in the caller’s code — there’s no valid reason to provide conflicting actual times for the same event.

Examples:

# Given a stream with actual_time_attribute :effective_date
stream.append(Salary::Raised.new(amount: 6500, effective_date: feb_15), at: mar_1)
# => raises Funes::ConflictingActualTimeError