JAXB
v0.21

javax.xml.bind
Class ConversionException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--javax.xml.bind.UnmarshalException
                    |
                    +--javax.xml.bind.ConversionException
All Implemented Interfaces:
Serializable

public class ConversionException
extends UnmarshalException

Checked exception thrown by an XML scanner when an I/O error occurs. The I/O exception that is thrown is wrapped within this exception.

Version:
1.4, 01/05/28
See Also:
Serialized Form

Constructor Summary
ConversionException(String desc)
          Constructs a new instance of this class.
ConversionException(String desc, Throwable x)
          Constructs a new instance of this class.
 
Method Summary
 Throwable getCause()
          Retrieves the Throwable that caused this exception.
 void printStackTrace(PrintStream out)
           
 
Methods inherited from class javax.xml.bind.UnmarshalException
getPosition, initPosition
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConversionException

public ConversionException(String desc)
Constructs a new instance of this class.
Parameters:
desc - A description of component being converted

ConversionException

public ConversionException(String desc,
                           Throwable x)
Constructs a new instance of this class.
Parameters:
desc - A description of component being converted
cause - The exception that was thrown during conversion
Method Detail

getCause

public Throwable getCause()
Retrieves the Throwable that caused this exception.
Returns:
The throwable

printStackTrace

public void printStackTrace(PrintStream out)
Overrides:
printStackTrace in class Throwable

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.