/tools/Ruby/lib/ruby/gems/1.8/gems/configatron-2.8.2/lib/configatron/errors.rb

http://github.com/agross/netopenspace · Ruby · 13 lines · 12 code · 1 blank · 0 comment · 0 complexity · 3752a06384ec3b9c26eeee7b5d25d245 MD5 · raw file

  1. class Configatron
  2. class ProtectedParameter < StandardError
  3. def intialize(name)
  4. super("Can not modify protected parameter: '#{name}'")
  5. end
  6. end
  7. class LockedNamespace < StandardError
  8. def initialize(name)
  9. super("Cannot add new parameters to locked namespace: #{name.inspect}")
  10. end
  11. end
  12. end