|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
com.smallx.xml.infoset.XMLException
This exception encapsulates XML runtime errors. Although it does not need to be caught, it has been declared where it is thrown. In addition, it provides a data structure for encapsulating errors and allows multiple errors to be associated with one exception.
Nested Class Summary | |
static class |
XMLException.Error
A data structure that encapsulates an error. |
Constructor Summary | |
XMLException(java.lang.String detail)
Constructs an exception with message. |
|
XMLException(java.lang.String detail,
java.util.List errors)
Constructs an exception with a list of errors. |
|
XMLException(java.lang.String detail,
Location node)
Constructs an exception with message and location. |
|
XMLException(java.lang.String detail,
java.lang.Throwable exception)
Constructs an exception with message and cause |
|
XMLException(java.lang.String detail,
java.lang.Throwable exception,
Location node)
Constructs an exception with message, cause, and location |
|
XMLException(java.lang.Throwable exception)
Constructs an exception with message, cause, and location |
|
XMLException(java.lang.Throwable exception,
Location node)
Constructs an exception with message, cause, and location |
Method Summary | |
void |
addError(java.lang.String message,
Item location)
|
void |
addError(java.lang.String message,
Item location,
java.lang.Throwable cause)
|
java.util.Iterator |
getErrors()
Returns an iteration of the errors. |
Location |
getLocation()
Returns the location of the error. |
boolean |
hasErrorList()
Indicates that the exception has an error list. |
void |
write(java.io.PrintWriter pw)
Writes the exception to a print stream. |
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 |
public XMLException(java.lang.String detail, Location node)
detail
- The exception message.node
- The exception location.public XMLException(java.lang.String detail)
detail
- The exception message.public XMLException(java.lang.String detail, java.lang.Throwable exception)
detail
- The exception message.exception
- The cause of the exceptionpublic XMLException(java.lang.String detail, java.lang.Throwable exception, Location node)
detail
- The exception message.exception
- The cause of the exceptionnode
- The exception location.public XMLException(java.lang.Throwable exception)
exception
- The cause of the exceptionpublic XMLException(java.lang.Throwable exception, Location node)
exception
- The cause of the exceptionnode
- The exception location.public XMLException(java.lang.String detail, java.util.List errors)
detail
- The exception message.errors
- The list of error instances.Method Detail |
public Location getLocation()
public boolean hasErrorList()
public java.util.Iterator getErrors()
public void addError(java.lang.String message, Item location)
public void addError(java.lang.String message, Item location, java.lang.Throwable cause)
public void write(java.io.PrintWriter pw)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |