Class ConversionException

  • All Implemented Interfaces:
    java.io.Serializable

    public class ConversionException
    extends EclipseLinkException

    Purpose: Conversion exceptions such as method or class not defined will raise this exception.

    See Also:
    Serialized Form
    • Field Detail

      • classToConvertTo

        protected java.lang.Class classToConvertTo
      • sourceObject

        protected transient java.lang.Object sourceObject
      • COULD_NOT_BE_CONVERTED_EXTENDED

        public static final int COULD_NOT_BE_CONVERTED_EXTENDED
        See Also:
        Constant Field Values
      • INCORRECT_TIMESTAMP_FORMAT

        public static final int INCORRECT_TIMESTAMP_FORMAT
        See Also:
        Constant Field Values
      • COULD_NOT_CONVERT_TO_BYTE_ARRAY

        public static final int COULD_NOT_CONVERT_TO_BYTE_ARRAY
        See Also:
        Constant Field Values
      • COULD_NOT_BE_CONVERTED_TO_CLASS

        public static final int COULD_NOT_BE_CONVERTED_TO_CLASS
        See Also:
        Constant Field Values
      • INCORRECT_DATE_TIME_FORMAT

        public static final int INCORRECT_DATE_TIME_FORMAT
        See Also:
        Constant Field Values
      • UNABLE_TO_SET_PROPERTIES

        public static final int UNABLE_TO_SET_PROPERTIES
        See Also:
        Constant Field Values
    • Constructor Detail

      • ConversionException

        protected ConversionException()
        INTERNAL: TopLink exceptions should only be thrown by TopLink. This constructor is only for error message scripting.
      • ConversionException

        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 Detail

      • couldNotBeConverted

        public static ConversionException couldNotBeConverted​(java.lang.Object object,
                                                              java.lang.Class javaClass)
      • couldNotBeConverted

        public static ConversionException couldNotBeConverted​(java.lang.Object object,
                                                              java.lang.Class javaClass,
                                                              java.lang.Exception exception)
      • couldNotBeConvertedToClass

        public static ConversionException couldNotBeConvertedToClass​(java.lang.Object object,
                                                                     java.lang.Class javaClass,
                                                                     java.lang.Exception exception)
      • couldNotTranslatePropertiesIntoObject

        public static ConversionException couldNotTranslatePropertiesIntoObject​(java.lang.Object object,
                                                                                java.lang.String propertyName,
                                                                                java.lang.String propertyValue,
                                                                                java.lang.Exception cause)
      • couldNotConvertToByteArray

        public static ConversionException couldNotConvertToByteArray​(java.lang.Object object)
      • incorrectDateFormat

        public static ConversionException incorrectDateFormat​(java.lang.String dateString)
      • incorrectTimeFormat

        public static ConversionException incorrectTimeFormat​(java.lang.String timeString)
      • incorrectTimestampFormat

        public static ConversionException incorrectTimestampFormat​(java.lang.String timestampString)
      • incorrectDateTimeFormat

        public static ConversionException incorrectDateTimeFormat​(java.lang.String dateTimeString,
                                                                  java.lang.Class classBeingConvertedTo)
      • incorrectDateTimeFormat

        public static ConversionException incorrectDateTimeFormat​(java.lang.String dateTimeString)
      • getClassToConvertTo

        public java.lang.Class getClassToConvertTo()
        PUBLIC: Return the class to convert to.
      • getSourceObject

        public java.lang.Object getSourceObject()
        PUBLIC: Return the object for which the problem was detected.
      • setClassToConvertTo

        public void setClassToConvertTo​(java.lang.Class classToConvertTo)
        INTERNAL: Set the class to convert to.
      • setSourceObject

        public void setSourceObject​(java.lang.Object sourceObject)
        INTERNAL: Set the object for which the problem was detected.