Sha256: 998655bbe8b71fa7ddb1488f51e221b6aedabe83344316100a580403c70a62db

Contents?: true

Size: 1.58 KB

Versions: 9

Compression:

Stored size: 1.58 KB

Contents

# frozen_string_literal: true

class SmartCore::Container
  # @api public
  # @since 0.1.0
  Error = Class.new(SmartCore::Error)

  # @api public
  # @since 0.1.0
  ArgumentError = Class.new(SmartCore::ArgumentError)

  # @api public
  # @since 0.1.0
  IncompatibleEntityNameError = Class.new(ArgumentError)

  # @see SmartCore::Container::Registry
  #
  # @api public
  # @since 0.1.0
  FrozenRegistryError = Class.new(SmartCore::FrozenError)

  # @api public
  # @since 0.1.0
  FetchError = Class.new(Error)

  # @see SmartCore::Container::DependencyCompatability::General
  # @see SmartCore::Container::DependencyCompatability::Definition
  # @see SmartCore::Container::DependencyCompatability::Registry
  #
  # @api public
  # @since 0.1.0
  DependencyOverNamespaceOverlapError = Class.new(Error)

  # @see SmartCore::Container::DependencyCompatability::General
  # @see SmartCore::Container::DependencyCompatability::Definition
  # @see SmartCore::Container::DependencyCompatability::Registry
  #
  # @api public
  # @since 0.1.0
  NamespaceOverDependencyOverlapError = Class.new(Error)

  # @see SmartCore::Container::DependencyResolver
  # @see SmartCore::Container::Registry
  #
  # @api public
  # @since 0.1.0
  class ResolvingError < FetchError
    # @return [String]
    #
    # @api private
    # @since 0.1.0
    attr_reader :path_part

    # @param message [String]
    # @param path_part [String]
    # @return [void]
    #
    # @api private
    # @since 0.1.0
    # @version 0.4.0
    def initialize(message = nil, path_part:)
      @path_part = path_part
      super(message)
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
smart_container-0.11.0 lib/smart_core/container/errors.rb
smart_container-0.10.0 lib/smart_core/container/errors.rb
smart_container-0.9.0 lib/smart_core/container/errors.rb
smart_container-0.8.1 lib/smart_core/container/errors.rb
smart_container-0.8.0 lib/smart_core/container/errors.rb
smart_container-0.7.0 lib/smart_core/container/errors.rb
smart_container-0.6.0 lib/smart_core/container/errors.rb
smart_container-0.5.0 lib/smart_core/container/errors.rb
smart_container-0.4.0 lib/smart_core/container/errors.rb