Sha256: e9db71aae281ac3175e7a331d1839f4f50e7bd7a03a85497c98fc464d86903dc

Contents?: true

Size: 1.05 KB

Versions: 4

Compression:

Stored size: 1.05 KB

Contents

# frozen_string_literal: true

require "securerandom"

require "spicery"
require "stenotype/version"

require "stenotype/adapters"
require "stenotype/dispatcher"
require "stenotype/configuration"
require "stenotype/context_handlers"
require "stenotype/event"
require "stenotype/event_serializer"
require "stenotype/emitter"

#
# A top level namespace for the freshly-events gem
#
module Stenotype
  # A wrapper class for Stenotype specific errors
  class Error < StandardError; end
  # This exception is being raised upon unsuccessful publishing of an event.
  class MessageNotPublishedError < Error; end
  # This exception is being raised in case no targets are
  # specified {Stenotype::Configuration}.
  class NoTargetsSpecifiedError < Error; end
  # This exception is being raised upon using a context handler which
  # has never been registered in known handlers in {Stenotype::ContextHandlers::Collection}.
  class UnknownHandlerError < Error; end

  include Directive::ConfigDelegation
  delegates_to_configuration
end

require "stenotype/railtie" if defined?(Rails)

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
stenotype-0.1.19 lib/stenotype.rb
stenotype-0.1.17 lib/stenotype.rb
stenotype-0.1.16 lib/stenotype.rb
stenotype-0.1.15 lib/stenotype.rb