⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 xmlpullparserexception.java

📁 RSS无线阅读器J2ME版本[开源]是一个可以下载到手机(例如Nokia7610)或者其他无线手持设备(例如PocketPC)的应用程序
💻 JAVA
字号:
/* -*-             c-basic-offset: 4; indent-tabs-mode: nil; -*-  //------100-columns-wide------>|*/// for license please see accompanying LICENSE.txt file (available also at http://www.xmlpull.org/)package org.xmlpull.v1;/** * This exception is thrown to signal XML Pull Parser related faults. * * @author <a href="http://www.extreme.indiana.edu/~aslom/">Aleksander Slominski</a> */public class XmlPullParserException extends Exception {    protected Throwable detail;    protected int row = -1;    protected int column = -1;    /*    public XmlPullParserException() {          }*/    public XmlPullParserException(String s) {        super(s);    }    /*    public XmlPullParserException(String s, Throwable thrwble) {        super(s);        this.detail = thrwble;        }    public XmlPullParserException(String s, int row, int column) {        super(s);        this.row = row;        this.column = column;    }    */    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;    }    public Throwable getDetail() { return detail; }    //    public void setDetail(Throwable cause) { this.detail = cause; }    public int getLineNumber() { return row; }    public int getColumnNumber() { return column; }    /*    public String getMessage() {        if(detail == null)            return super.getMessage();        else            return super.getMessage() + "; nested exception is: \n\t"                + detail.getMessage();    }    */    //NOTE: code that prints this and detail is difficult in J2ME    public void printStackTrace() {        if (detail == null) {            super.printStackTrace();        } else {            synchronized(System.err) {                System.err.println(super.getMessage() + "; nested exception is:");                detail.printStackTrace();            }        }    }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -