src/error.js
function _gpfErrorDeclare (source, dictionary) {
    _gpfIgnore(source);
    _gpfObjectForEach(dictionary, function (message, name) {
        var code = ++_gpfLastErrorCode;
        gpf.Error["CODE_" + name.toUpperCase()] = code;
        gpf.Error[name] = _gpfGenenerateErrorFunction(code, name, message);
    });
}
function _gpfErrorDeclare (source, dictionary) {
    _gpfIgnore(source);
    _gpfObjectForEach(dictionary, function (message, name) {
        var code = ++_gpfLastErrorCode;
        gpf.Error["CODE_" + name.toUpperCase()] = code;
        gpf.Error[name] = _gpfGenenerateErrorFunction(code, name, message);
    });
}
function _gpfErrorDeclare ( source , dictionary ) { _gpfIgnore ( source ) ; _gpfObjectForEach ( dictionary , function ( message , name ) { var code = ++ _gpfLastErrorCode ; gpf . Error [ "CODE_" + name . toUpperCase ( ) ] = code ; gpf . Error [ name ] = _gpfGenenerateErrorFunction ( code , name , message ) ; } ) ; }
Declare error messages.
Each source declares its own errors.

@param {String} source Source name
@param {Object} dictionary Dictionary of error name to message
@since 0.1.5
Declare error messages . Each source declares its own errors .