src/validator.js
function RulesConfigurationError(message, path)
    {
        var self       = new Error();
        self.path      = path;
        self.message   = "Rules configuration error : "+message+(path ? " at path : "+path : "");
        self.name      = 'RulesConfigurationError';
        self.__proto__ = RulesConfigurationError.prototype;
        return self;
    }
function RulesConfigurationError(message, path)
    {
        var self       = new Error();
        self.path      = path;
        self.message   = "Rules configuration error : "+message+(path ? " at path : "+path : "");
        self.name      = 'RulesConfigurationError';
        self.__proto__ = RulesConfigurationError.prototype;
        return self;
    }
function RulesConfigurationError ( message , path ) { var self = new Error ( ) ; self . path = path ; self . message = "Rules configuration error : " + message + ( path ? " at path : " + path : "" ) ; self . name = 'RulesConfigurationError' ; self . __proto__ = RulesConfigurationError . prototype ; return self ; }
Error class for invalid rules definition
@param string message The error message
@param string path    The path of the invalid definition
Error class for invalid rules definition