Sha256: a59acb7881d9904eebc7d2c26504404bcc80cdcf814fbffcd7e9f12029f6096b

Contents?: true

Size: 549 Bytes

Versions: 1

Compression:

Stored size: 549 Bytes

Contents

# froze_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 registration is attempted, but there exists an event registered to the given identifiered.
  class IdentifierTakenError < StandardError; end

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
emittance-0.0.2 lib/emittance/errors.rb