|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
uxparser.XException
public class XException
XException is used to indicate a problem parsing XML.
Constructor Summary | |
---|---|
XException()
Default constructor. |
|
XException(java.lang.String msg)
Construct with no line number. |
|
XException(java.lang.String msg,
int line)
Construct using specified line number. |
|
XException(java.lang.String msg,
int line,
int column)
Construct using specified line and column. |
|
XException(java.lang.String msg,
int line,
int column,
java.lang.Throwable cause)
Construct using specified line and column. |
|
XException(java.lang.String msg,
int line,
java.lang.Throwable cause)
Construct using specified line number. |
|
XException(java.lang.String msg,
java.lang.Throwable cause)
Construct with no line number. |
|
XException(java.lang.String msg,
XElem elem)
Construct using element's line number. |
|
XException(java.lang.String msg,
XElem elem,
java.lang.Throwable cause)
Construct using element's line number. |
|
XException(java.lang.String msg,
XParser parser)
Construct using current line and column of parser. |
|
XException(java.lang.String msg,
XParser parser,
java.lang.Throwable cause)
Construct using current line and column of parser. |
|
XException(java.lang.Throwable cause)
Constructor with cause only. |
Method Summary | |
---|---|
int |
column()
Get the column number of 0 if unknown. |
static java.lang.String |
format(java.lang.String msg,
int line,
int col)
Get the standard message format given a text message and a line/column location. |
java.lang.Throwable |
getCause()
Get the nested exception for or return null if no cause exception is provided. |
XElem |
getElem()
Return the XElem passed to the constructor or null. |
int |
line()
Get the line number of 0 if unknown. |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, 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 |
---|
public XException(java.lang.String msg, int line, int column, java.lang.Throwable cause)
public XException(java.lang.String msg, int line, int column)
public XException(java.lang.String msg, int line, java.lang.Throwable cause)
public XException(java.lang.String msg, int line)
public XException(java.lang.String msg, XParser parser, java.lang.Throwable cause)
public XException(java.lang.String msg, XParser parser)
public XException(java.lang.String msg, XElem elem, java.lang.Throwable cause)
public XException(java.lang.String msg, XElem elem)
public XException(java.lang.String msg, java.lang.Throwable cause)
public XException(java.lang.String msg)
public XException(java.lang.Throwable cause)
public XException()
Method Detail |
---|
public int line()
public int column()
public XElem getElem()
public java.lang.Throwable getCause()
getCause
in class java.lang.Throwable
public static java.lang.String format(java.lang.String msg, int line, int col)
msg
- base messageline
- 0 if unknowncol
- 0 if unknown
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |