JAXB
v0.21

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

Constructor Summary
protected ScanException(ScanPosition pos)
          Initializes a new instance of this class.
  ScanException(ScanPosition pos, String desc)
          Constructs a new instance of this class.
 
Method Summary
 String toString()
          Returns a string describing this exception that includes the position at which the error was detected, if available.
 
Methods inherited from class javax.xml.bind.UnmarshalException
getPosition, initPosition
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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 detected
desc - A string describing the error
Method Detail

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

JAXB
v0.21


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.