FileDocCategorySizeDatePackage
XmlPullParserException.javaAPI DocAndroid 1.5 API2268Wed May 06 22:41:06 BST 2009org.xmlpull.v1

XmlPullParserException

public class XmlPullParserException extends Exception
This exception is thrown to signal XML Pull Parser related faults.
author
Aleksander Slominski

Fields Summary
protected Throwable
detail
protected int
row
protected int
column
Constructors Summary
public XmlPullParserException(String s)


    /*    public XmlPullParserException() {
          }*/

       
        super(s);
    
public XmlPullParserException(String msg, XmlPullParser parser, Throwable chain)

        super ((msg == null ? "" : msg+" ")
               + (parser == null ? "" : "(position:"+parser.getPositionDescription()+") ")
               + (chain == null ? "" : "caused by: "+chain));

        if (parser != null) {
            this.row = parser.getLineNumber();
            this.column = parser.getColumnNumber();
        }
        this.detail = chain;
    
Methods Summary
public intgetColumnNumber()

 return column; 
public java.lang.ThrowablegetDetail()

 return detail; 
public intgetLineNumber()

 return row; 
public voidprintStackTrace()

        if (detail == null) {
            super.printStackTrace();
        } else {
            synchronized(System.err) {
                System.err.println(super.getMessage() + "; nested exception is:");
                detail.printStackTrace();
            }
        }