code: function(data) {
          var result;
          if(typeof data == "string") {
              data = OpenLayers.Format.XML.prototype.read.apply(this, [data]);
          }
          var root = data.documentElement;
          var exceptionInfo = {exceptionReport: null}; 
          if (root) {
              this.readChildNodes(data, exceptionInfo);
              if (exceptionInfo.exceptionReport === null) {
                  // fall-back to OWSCommon since this is a common output format for exceptions
                  // we cannot easily use the ows readers directly since they differ for 1.0 and 1.1
                  exceptionInfo = new OpenLayers.Format.OWSCommon().read(data);
              }
          }
          return exceptionInfo;
      }
docs: Constructor: OpenLayers.Format.OGCExceptionReport
  Create a new parser for OGC exception reports.
  
  Parameters:
  options - {Object} An optional object whose properties will be set on
  this instance.
   
  APIMethod: read
  Read OGC exception report data from a string, and return an object with
  information about the exceptions.
  
  Parameters:
  data - {String} or {DOMElement} data to read/parse.
  
  Returns:
  {Object} Information about the exceptions that occurred.