class Sequent::Core::AggregateKeyNotUniqueError
Attributes
Public Class Methods
Source
# File lib/sequent/core/event_store.rb, line 19 def initialize(message) super match = message.match( # rubocop:disable Layout/LineLength /aggregate (\p{Upper}\p{Alnum}*(?:::\p{Upper}\p{Alnum}*)*) (\p{XDigit}{8}-\p{XDigit}{4}-\p{XDigit}{4}-\p{XDigit}{4}-\p{XDigit}{12})/, # rubocop:enable Layout/LineLength ) if match @aggregate_type = match[1] @aggregate_id = match[2] end end
Calls superclass method
Source
# File lib/sequent/core/event_store.rb, line 15 def self.unique_key_error_message?(message) message =~ /duplicate unique key value for aggregate/ end