com.ls.util.xml
Class JavaToXMLConversionException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--com.ls.util.xml.XMLConversionException
                    |
                    +--com.ls.util.xml.JavaToXMLConversionException
All Implemented Interfaces:
Serializable

public class JavaToXMLConversionException
extends XMLConversionException

Exception class representing all exceptions that may occure when converting a java object to an xml string. It contains the xml string that caused the exception as well as an error code and error message with the precise error type.

Version:
$Revision: 1.0 $
Author:
Last modified by $Author: TBerk $
See Also:
Serialized Form

Fields inherited from class com.ls.util.xml.XMLConversionException
FIELD_RETRIEVE_EXCEPTION, INTROSPECTION_EXCEPTION, INVALID_OBJECT_EXCEPTION, PROGRAMMING_EXCEPTION, TRANSIENTIDSET_EXCEPTION, UNSPECIFIED_EXCEPTION
 
Constructor Summary
JavaToXMLConversionException(String errorMessage, int errorCode, Object object)
          Constructor to specify the error message, error code and object thats conversion caused the exception.
 
Method Summary
 Object getObject()
          Returns the java object thats conversion caused the exception.
 String toString()
          Returns a string representation of this exception.
 
Methods inherited from class com.ls.util.xml.XMLConversionException
getErrorCode
 
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

JavaToXMLConversionException

public JavaToXMLConversionException(String errorMessage,
                                    int errorCode,
                                    Object object)
Constructor to specify the error message, error code and object thats conversion caused the exception.
Parameters:
errorMessage - the precise error message in text
errorCode - the error type (see XMLConversionException constants)
object - the object thats conversion caused the exception
Method Detail

getObject

public Object getObject()
Returns the java object thats conversion caused the exception.
Returns:
the java object thats conversion caused the exception.

toString

public String toString()
Returns a string representation of this exception.
Overrides:
toString in class XMLConversionException
Returns:
a string representation of this exception