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
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. |
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 texterrorCode
- the error type (see XMLConversionException constants)object
- the object thats conversion caused the exception
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