Sha256: 0e8e9ea82b923af110aa9aa1e5b8a98c7c8266f05d15bde4320acf22ec2a966e

Contents?: true

Size: 706 Bytes

Versions: 11

Compression:

Stored size: 706 Bytes

Contents

# frozen_string_literal: true

module Emittance
  # Raised when an identifier (for the purposes of identifying an event class) cannot be parsed, or an event class
  # can otherwise not be found or generated.
  class InvalidIdentifierError < StandardError; end

  # Raised when an identifier couldn't be generated from a class. Typically a validation error.
  class IdentifierGenerationError < StandardError; end

  # Raised when an identifier registration is attempted, but there exists an event registered to the given identifiered.
  class IdentifierCollisionError < StandardError; end

  # Used when a custom event type undergoes payload validation.
  class InvalidPayloadError < StandardError; end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
emittance-2.0.0.pre.1 lib/emittance/errors.rb
emittance-1.1.0 lib/emittance/errors.rb
emittance-1.0.0 lib/emittance/errors.rb
emittance-0.1.3 lib/emittance/errors.rb
emittance-0.1.2 lib/emittance/errors.rb
emittance-0.1.1 lib/emittance/errors.rb
emittance-0.1.0 lib/emittance/errors.rb
emittance-0.0.6 lib/emittance/errors.rb
emittance-0.0.5 lib/emittance/errors.rb
emittance-0.0.4 lib/emittance/errors.rb
emittance-0.0.3 lib/emittance/errors.rb