Sha256: c0267d963e5f8034e63d3b11704ed05a0d0b9a5e3a7b62a8c1713c2ac6fe4cd6

Contents?: true

Size: 769 Bytes

Versions: 17

Compression:

Stored size: 769 Bytes

Contents

# frozen_string_literal: true

module Hanami
  # Base class for all Hanami errors.
  #
  # @api public
  # @since 2.0.0
  Error = Class.new(StandardError)

  # Error raised when {Hanami::App} fails to load.
  #
  # @api public
  # @since 2.0.0
  AppLoadError = Class.new(Error)

  # Error raised when an {Hanami::Slice} fails to load.
  #
  # @api public
  # @since 2.0.0
  SliceLoadError = Class.new(Error)

  # Error raised when an individual component fails to load.
  #
  # @api public
  # @since 2.0.0
  ComponentLoadError = Class.new(Error)

  # Error raised when unsupported middleware configuration is given.
  #
  # @see Hanami::Slice::Routing::Middleware::Stack#use
  #
  # @api public
  # @since 2.0.0
  UnsupportedMiddlewareSpecError = Class.new(Error)
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
hanami-2.2.1 lib/hanami/errors.rb
hanami-2.2.0 lib/hanami/errors.rb
hanami-2.2.0.rc1 lib/hanami/errors.rb
hanami-2.2.0.beta2 lib/hanami/errors.rb
hanami-2.2.0.beta1 lib/hanami/errors.rb
hanami-2.1.0 lib/hanami/errors.rb
hanami-2.1.0.rc3 lib/hanami/errors.rb
hanami-2.1.0.rc2 lib/hanami/errors.rb
hanami-2.1.0.rc1 lib/hanami/errors.rb
hanami-2.1.0.beta2.1 lib/hanami/errors.rb
hanami-2.1.0.beta2 lib/hanami/errors.rb
hanami-2.1.0.beta1 lib/hanami/errors.rb
hanami-2.0.3 lib/hanami/errors.rb
hanami-2.0.2 lib/hanami/errors.rb
hanami-2.0.1 lib/hanami/errors.rb
hanami-2.0.0 lib/hanami/errors.rb
hanami-2.0.0.rc1 lib/hanami/errors.rb