|
JAXB v0.21 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--javax.xml.bind.UnmarshalException
Abstract checked-exception class for exceptions thrown when errors occur during unmarshalling.
Unmarshalling errors fall into three categories, each of which has a specific subclass of this class:
A ScanException is thrown when the input
document is not well-formed or when an I/O error occurs.
A ValidationException is thrown when a violation of a
constraint expressed in the source schema is detected.
A ConversionException is thrown when a binding
conversion's parse method throws an exception.
ValidationException class.
Dispatcher,
Element,
MarshallableObject,
RootElement,
Validator, Serialized Form| Constructor Summary | |
protected |
UnmarshalException()
Initializes a new instance of this class. |
protected |
UnmarshalException(ScanPosition pos)
Initializes a new instance of this class with the given scan position. |
protected |
UnmarshalException(ScanPosition pos,
String desc)
Initializes a new instance of this class with the given scan position and description. |
protected |
UnmarshalException(String desc)
Initializes a new instance of this class with the given description and no scan position. |
| Method Summary | |
ScanPosition |
getPosition()
Returns this exception's scan position, or null if the scan position is undefined. |
void |
initPosition(ScanPosition sp)
Sets this exception's scan position. |
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
protected UnmarshalException()
protected UnmarshalException(ScanPosition pos)
pos - The scan position
protected UnmarshalException(ScanPosition pos,
String desc)
pos - The scan positiondesc - The descriptionprotected UnmarshalException(String desc)
desc - The description| Method Detail |
public final ScanPosition getPosition()
public final void initPosition(ScanPosition sp)
sp - The scan positionIllegalStateException - If the scan position has already been set
|
JAXB v0.21 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
Copyright © 2001 by Sun Microsystems, Inc., 901 San Antonio Road,
Palo Alto, California, 94303, U.S.A. All Rights Reserved.