Sha256: 20ccaea0532b1c3443148b8bf1dbac4c550e61d66a125a99003aa69e93407524

Contents?: true

Size: 450 Bytes

Versions: 5

Compression:

Stored size: 450 Bytes

Contents

module SmartIoC::Errors
  class BeanNotFound < StandardError
    def initialize(bean_name)
      super("Unable to find bean :#{bean_name} in any packages")
    end
  end

  class AmbiguousBeanDefinition < StandardError
    def initialize(bean_name, bean_definitions)
      super(%Q(
        Unable to create bean :#{bean_name}.
        Several definitions were found.
        #{bean_definitions.map(&:inspect).join("\n\n")}
      ))
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
smart_ioc-0.1.24 lib/smart_ioc/errors.rb
smart_ioc-0.1.23 lib/smart_ioc/errors.rb
smart_ioc-0.1.22 lib/smart_ioc/errors.rb
smart_ioc-0.1.21 lib/smart_ioc/errors.rb
smart_ioc-0.1.20 lib/smart_ioc/errors.rb