📄 stopparseexception.java
字号:
/*------------------------------------------------------------------------------Name: StopParseException.javaProject: xmlBlaster.orgCopyright: xmlBlaster.org, see xmlBlaster-LICENSE fileComment: Throw this exception to stop SAX parsingVersion: $Id: StopParseException.java 14020 2005-11-11 08:33:27Z ruff $------------------------------------------------------------------------------*/package org.xmlBlaster.util;/** * Throw this exception to stop SAX parsing. * <p /> * Usually thrown in startElement() or endElement() if * you are not interested in the following tags anymore.<br /> * Note that this exception extends RuntimeException, * so we don't need to declare it with a throws clause. */public class StopParseException extends RuntimeException{ private static final long serialVersionUID = -8413175809990498728L; XmlBlasterException e; /** * Use this constructor to stop parsing when you are done. */ public StopParseException() {} /** * Use this constructor to stop parsing when an exception occurred. * The XmlBlasterException is transported embedded in this class */ public StopParseException(XmlBlasterException e) { this.e = e; } public boolean hasError() { return this.e != null; } public XmlBlasterException getXmlBlasterException() { return this.e; }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -