JSAPI.info

YUI.error

YUI (3.3.0) - see full source
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
    error: function(msg, e, data) {
 
        var Y = this, ret;
 
        if (Y.config.errorFn) {
            ret = Y.config.errorFn.apply(Y, arguments);
        }
 
        if (Y.config.throwFail && !ret) {
            throw (e || new Error(msg));
        } else {
            Y.message(msg, 'error'); // don't scrub this one
        }
 
        return Y;
    },