com.ctc.wstx.exc
public class: WstxLazyException [javadoc |
source]
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.ctc.wstx.exc.WstxLazyException
All Implemented Interfaces:
Serializable
Alternative exception class Woodstox code uses when it is not allowed
to throw an instance of
XMLStreamException ; this generally
happens when doing lazy parsing.
| Field Summary |
|---|
| final XMLStreamException | mOrig | |
| Constructor: |
public WstxLazyException(XMLStreamException origEx) {
super(origEx.getMessage());
mOrig = origEx;
/* Let's additionally try to set source message, if we run on
* JDK 1.4 or later.
*/
JdkFeatures.getInstance().setInitCause(this, origEx);
}
|
| Methods from java.lang.Throwable: |
|---|
|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods from java.lang.Object: |
|---|
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method from com.ctc.wstx.exc.WstxLazyException Detail: |
public String getMessage() {
return "["+getClass().getName()+"] "+mOrig.getMessage();
}
Need to override this, to be able to dynamically construct and
display the location information... |
public static void throwLazily(XMLStreamException ex) throws WstxLazyException {
throw new WstxLazyException(ex);
}
|
public String toString() {
return "["+getClass().getName()+"] "+mOrig.toString();
}
|