|
EclipseLink 1.2.0, build 'v20091016-r5565' API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Throwable java.lang.Exception java.lang.RuntimeException org.eclipse.persistence.exceptions.EclipseLinkException org.eclipse.persistence.exceptions.ConversionException
public class ConversionException
Purpose: Conversion exceptions such as method or class not defined will raise this exception.
Field Summary | |
---|---|
protected java.lang.Class |
classToConvertTo
|
static int |
COULD_NOT_BE_CONVERTED
|
static int |
COULD_NOT_BE_CONVERTED_EXTENDED
|
static int |
COULD_NOT_BE_CONVERTED_TO_CLASS
|
static int |
COULD_NOT_CONVERT_TO_BYTE_ARRAY
|
static int |
INCORRECT_DATE_FORMAT
|
static int |
INCORRECT_DATE_TIME_FORMAT
|
static int |
INCORRECT_TIME_FORMAT
|
static int |
INCORRECT_TIMESTAMP_FORMAT
|
protected java.lang.Object |
sourceObject
|
Fields inherited from class org.eclipse.persistence.exceptions.EclipseLinkException |
---|
CR, errorCode, hasBeenLogged, indentationString, internalException, session, shouldPrintInternalException |
Constructor Summary | |
---|---|
protected |
ConversionException()
INTERNAL: TopLink exceptions should only be thrown by TopLink. |
protected |
ConversionException(java.lang.String message,
java.lang.Object sourceObject,
java.lang.Class classToConvertTo,
java.lang.Exception exception)
INTERNAL: TopLink exceptions should only be thrown by TopLink. |
Method Summary | |
---|---|
static ConversionException |
couldNotBeConverted(java.lang.Object object,
java.lang.Class javaClass)
|
static ConversionException |
couldNotBeConverted(java.lang.Object object,
java.lang.Class javaClass,
java.lang.Exception exception)
|
static ConversionException |
couldNotBeConverted(java.lang.Object mapping,
java.lang.Object descriptor,
ConversionException exception)
|
static ConversionException |
couldNotBeConvertedToClass(java.lang.Object object,
java.lang.Class javaClass,
java.lang.Exception exception)
|
static ConversionException |
couldNotConvertToByteArray(java.lang.Object object)
|
java.lang.Class |
getClassToConvertTo()
PUBLIC: Return the class to convert to. |
java.lang.Object |
getSourceObject()
PUBLIC: Return the object for which the problem was detected. |
static ConversionException |
incorrectDateFormat(java.lang.String dateString)
|
static ConversionException |
incorrectDateTimeFormat(java.lang.String dateTimeString)
|
static ConversionException |
incorrectDateTimeFormat(java.lang.String dateTimeString,
java.lang.Class classBeingConvertedTo)
|
static ConversionException |
incorrectTimeFormat(java.lang.String timeString)
|
static ConversionException |
incorrectTimestampFormat(java.lang.String timestampString)
|
void |
setClassToConvertTo(java.lang.Class classToConvertTo)
INTERNAL: Set the class to convert to. |
void |
setSourceObject(java.lang.Object sourceObject)
INTERNAL: Set the object for which the problem was detected. |
Methods inherited from class org.eclipse.persistence.exceptions.EclipseLinkException |
---|
cr, getErrorCode, getIndentationString, getInternalException, getMessage, getSession, hasBeenLogged, printStackTrace, printStackTrace, printStackTrace, setErrorCode, setHasBeenLogged, setIndentationString, setInternalException, setSession, setShouldPrintInternalException, shouldPrintInternalException, toString |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, setStackTrace |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected java.lang.Class classToConvertTo
protected transient java.lang.Object sourceObject
public static final int COULD_NOT_BE_CONVERTED
public static final int COULD_NOT_BE_CONVERTED_EXTENDED
public static final int INCORRECT_DATE_FORMAT
public static final int INCORRECT_TIME_FORMAT
public static final int INCORRECT_TIMESTAMP_FORMAT
public static final int COULD_NOT_CONVERT_TO_BYTE_ARRAY
public static final int COULD_NOT_BE_CONVERTED_TO_CLASS
public static final int INCORRECT_DATE_TIME_FORMAT
Constructor Detail |
---|
protected ConversionException()
protected ConversionException(java.lang.String message, java.lang.Object sourceObject, java.lang.Class classToConvertTo, java.lang.Exception exception)
Method Detail |
---|
public static ConversionException couldNotBeConverted(java.lang.Object mapping, java.lang.Object descriptor, ConversionException exception)
public static ConversionException couldNotBeConverted(java.lang.Object object, java.lang.Class javaClass)
public static ConversionException couldNotBeConverted(java.lang.Object object, java.lang.Class javaClass, java.lang.Exception exception)
public static ConversionException couldNotBeConvertedToClass(java.lang.Object object, java.lang.Class javaClass, java.lang.Exception exception)
public static ConversionException couldNotConvertToByteArray(java.lang.Object object)
public static ConversionException incorrectDateFormat(java.lang.String dateString)
public static ConversionException incorrectTimeFormat(java.lang.String timeString)
public static ConversionException incorrectTimestampFormat(java.lang.String timestampString)
public static ConversionException incorrectDateTimeFormat(java.lang.String dateTimeString, java.lang.Class classBeingConvertedTo)
public static ConversionException incorrectDateTimeFormat(java.lang.String dateTimeString)
public java.lang.Class getClassToConvertTo()
public java.lang.Object getSourceObject()
public void setClassToConvertTo(java.lang.Class classToConvertTo)
public void setSourceObject(java.lang.Object sourceObject)
|
EclipseLink 1.2.0, build 'v20091016-r5565' API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |