# File lib/safemode/exceptions.rb, line 11 def initialize(type, value = nil) type = @@types[type] if @@types.include?(type) super "Safemode doesn't allow to access '#{type}'" + (value ? " on #{value}" : '') end