Sha256: 6c1bb57283f15097e635292106270959ab24d73656a8631560c741a57dc83107

Contents?: true

Size: 699 Bytes

Versions: 12

Compression:

Stored size: 699 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 LoadRecursion < StandardError
    def initialize(bean_definition)
      super(%Q(
        Unable to create bean :#{bean_definitions.name}.
        Recursion found during bean load.
        #{bean_definition.inspect}
      ))
    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

12 entries across 12 versions & 1 rubygems

Version Path
smart_ioc-0.2.5 lib/smart_ioc/errors.rb
smart_ioc-0.2.4 lib/smart_ioc/errors.rb
smart_ioc-0.2.3 lib/smart_ioc/errors.rb
smart_ioc-0.2.2 lib/smart_ioc/errors.rb
smart_ioc-0.2.1 lib/smart_ioc/errors.rb
smart_ioc-0.2.0 lib/smart_ioc/errors.rb
smart_ioc-0.1.30 lib/smart_ioc/errors.rb
smart_ioc-0.1.29 lib/smart_ioc/errors.rb
smart_ioc-0.1.28 lib/smart_ioc/errors.rb
smart_ioc-0.1.27 lib/smart_ioc/errors.rb
smart_ioc-0.1.26 lib/smart_ioc/errors.rb
smart_ioc-0.1.25 lib/smart_ioc/errors.rb