Code example for XmlPullParserException

Methods: printStackTrace

0
  public GDataParser createParser(InputStream is) throws ParseException {
    is = maybeLogCommunication(is);
    try { 
      return new XmlGDataParser(is, xmlFactory.createParser());
    } catch (XmlPullParserException e) {
      e.printStackTrace();
      return null; 
    } 
  } 
 
  @SuppressWarnings({ "unchecked", "rawtypes" }) 
  @Override 
  public GDataParser createParser(Class cls, InputStream is)
      throws ParseException { 
    is = maybeLogCommunication(is);
    try { 
      return createParserForClass(cls, is);
    } catch (XmlPullParserException e) {
      e.printStackTrace();
      return null; 
    }