javax.xml.marshal
Class ScanException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--javax.xml.bind.UnmarshalException
|
+--javax.xml.marshal.ScanException
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- EndOfDocumentException, ScanIOException
- public class ScanException
- extends UnmarshalException
Checked exception thrown by an XML scanner when it encounters input that is
not lexically well-formed or when an I/O error occurs.
- Version:
- 1.1, 01/03/07
- See Also:
- Serialized Form
Method Summary |
String |
toString()
Returns a string describing this exception that includes the position at
which the error was detected, if available. |
ScanException
protected ScanException(ScanPosition pos)
- Initializes a new instance of this class.
- Parameters:
pos
- The position at which the error was detected
ScanException
public ScanException(ScanPosition pos,
String desc)
- Constructs a new instance of this class.
- Parameters:
pos
- The position at which the error was detecteddesc
- A string describing the error
toString
public String toString()
- Returns a string describing this exception that includes the position at
which the error was detected, if available.
- Overrides:
toString
in class Throwable
- Returns:
- A string describing this exception
Comments to: jaxb-comments@java.sun.com
More information at: http://java.sun.com/xml/jaxb Copyright © 2001 by Sun Microsystems, Inc., 901 San Antonio Road,
Palo Alto, California, 94303, U.S.A. All Rights Reserved.