public class ConversionException extends TopLinkException
Purpose: Conversion exceptions such as method or class not defined will raise this exception.
Modifier and Type | Field and Description |
---|---|
protected 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 Object |
sourceObject |
CR, errorCode, hasBeenLogged, indentationString, internalException, session, shouldPrintInternalException
Modifier | Constructor and Description |
---|---|
protected |
ConversionException(String message,
Object sourceObject,
Class classToConvertTo,
Exception exception)
INTERNAL:
TopLink exceptions should only be thrown by TopLink.
|
cr, getErrorCode, getIndentationString, getInternalException, getMessage, getSession, hasBeenLogged, printStackTrace, printStackTrace, printStackTrace, setErrorCode, setHasBeenLogged, setIndentationString, setInternalException, setSession, setShouldPrintInternalException, shouldPrintInternalException, toString
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, setStackTrace
protected Class classToConvertTo
protected transient 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
public static ConversionException couldNotBeConverted(Object mapping, Object descriptor, ConversionException exception)
public static ConversionException couldNotBeConverted(Object object, Class javaClass)
public static ConversionException couldNotBeConverted(Object object, Class javaClass, Exception exception)
public static ConversionException couldNotBeConvertedToClass(Object object, Class javaClass, Exception exception)
public static ConversionException couldNotConvertToByteArray(Object object)
public static ConversionException incorrectDateFormat(String dateString)
public static ConversionException incorrectTimeFormat(String timeString)
public static ConversionException incorrectTimestampFormat(String timestampString)
public static ConversionException incorrectDateTimeFormat(String dateTimeString)
public Class getClassToConvertTo()
public Object getSourceObject()
public void setClassToConvertTo(Class classToConvertTo)
public void setSourceObject(Object sourceObject)
Copyright © 2023. All rights reserved.