Exception: Funes::InvalidEventMetainformation

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

Overview

Raised when attempting to persist an event with invalid metainformation.

This error is raised during Event#persist! when the configured EventMetainformation validations fail. The event is not persisted.

Examples:

Handling invalid metainformation

begin
  event.persist!(idx, version)
rescue Funes::InvalidEventMetainformation => e
  Rails.logger.error "Invalid metainformation: #{e.message}"
end

See Also: