PageRenderTime 63ms CodeModel.GetById 61ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

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