View | Details | Raw Unified | Return to bug 41707
Collapse All | Expand All

(-)src/protocol/http/org/apache/jmeter/protocol/http/sampler/XmlRpcErrorHandler.java (+24 lines)
Line 0 Link Here
1
package org.apache.jmeter.protocol.http.sampler;
2
3
import java.util.Stack;
4
5
import org.xml.sax.SAXParseException;
6
import org.xml.sax.helpers.DefaultHandler;
7
8
public class XmlRpcErrorHandler extends DefaultHandler {
9
10
  private Stack parseErrors = null;
11
  
12
  public SAXParseException[] getParseErrors() {    
13
    if (parseErrors == null)
14
      parseErrors = new Stack();
15
    return (SAXParseException[])parseErrors.toArray(new SAXParseException[0]);
16
  }
17
  
18
  public void error(SAXParseException e) {
19
    if (parseErrors == null)
20
      parseErrors = new Stack();
21
    parseErrors.push(e);
22
  }
23
  
24
}

Return to bug 41707