Package com.ctc.wstx.exc
Class WstxException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- javax.xml.stream.XMLStreamException
-
- com.ctc.wstx.exc.WstxException
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
WstxIOException
,WstxOutputException
,WstxParsingException
public class WstxException extends javax.xml.stream.XMLStreamException
Base class for all implementatations ofXMLStreamException
Wstx uses.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
mMsg
D'oh.
-
Constructor Summary
Constructors Constructor Description WstxException(java.lang.String msg)
WstxException(java.lang.String msg, javax.xml.stream.Location loc)
WstxException(java.lang.String msg, javax.xml.stream.Location loc, java.lang.Throwable th)
WstxException(java.lang.Throwable th)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.String
getLocationDesc()
java.lang.String
getMessage()
Method is overridden for two main reasons: first, default method does not display public/system id information, even if it exists, and second, default implementation can not handle nested Location information.java.lang.String
toString()
-
-
-
Constructor Detail
-
WstxException
public WstxException(java.lang.String msg)
-
WstxException
public WstxException(java.lang.Throwable th)
-
WstxException
public WstxException(java.lang.String msg, javax.xml.stream.Location loc)
-
WstxException
public WstxException(java.lang.String msg, javax.xml.stream.Location loc, java.lang.Throwable th)
-
-
Method Detail
-
getMessage
public java.lang.String getMessage()
Method is overridden for two main reasons: first, default method does not display public/system id information, even if it exists, and second, default implementation can not handle nested Location information.- Overrides:
getMessage
in classjava.lang.Throwable
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Throwable
-
getLocationDesc
protected java.lang.String getLocationDesc()
-
-