xmlBlaster 2.2.0 client API

org.xmlBlaster.util
Class StopParseException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.xmlBlaster.util.StopParseException
All Implemented Interfaces:
java.io.Serializable

public class StopParseException
extends java.lang.RuntimeException

Throw this exception to stop SAX parsing.

Usually thrown in startElement() or endElement() if you are not interested in the following tags anymore.
Note that this exception extends RuntimeException, so we don't need to declare it with a throws clause.

See Also:
Serialized Form

Constructor Summary
StopParseException()
          Use this constructor to stop parsing when you are done.
StopParseException(XmlBlasterException e)
          Use this constructor to stop parsing when an exception occurred.
 
Method Summary
 XmlBlasterException getXmlBlasterException()
           
 boolean hasError()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StopParseException

public StopParseException()
Use this constructor to stop parsing when you are done.


StopParseException

public StopParseException(XmlBlasterException e)
Use this constructor to stop parsing when an exception occurred. The XmlBlasterException is transported embedded in this class

Method Detail

hasError

public boolean hasError()

getXmlBlasterException

public XmlBlasterException getXmlBlasterException()

xmlBlaster 2.2.0 client API

Copyright © 1999-2014 The xmlBlaster.org contributers.