code: function(msg, e) {
  
          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;
      }
docs: Report an error.  The reporting mechanism is controled by
  the 'throwFail' configuration attribute.  If throwFail is
  not specified, the message is written to the Logger, otherwise
  a JS error is thrown
  @method error
  @param msg {string} the error message
  @param e {Error} Optional JS error that was caught.  If supplied
  and throwFail is specified, this error will be re-thrown.
  @return {YUI} this YUI instance