Class PropertyDeserializationException

  • All Implemented Interfaces:
    java.io.Serializable

    public class PropertyDeserializationException
    extends java.lang.RuntimeException
    Exception thrown when a PropertyValue cannot be deserialized to the requested type. Contains details about the failed deserialization including the property path, target type, and original value.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      PropertyDeserializationException​(java.lang.String message, java.lang.String[] path, java.lang.Class<?> targetType, PropertyValue value, java.lang.Throwable cause)
      Creates a new PropertyDeserializationException.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String[] getPath()
      Gets the property path where deserialization failed.
      java.lang.Class<?> getTargetType()
      Gets the target type that was being deserialized to.
      PropertyValue getValue()
      Gets the PropertyValue that failed to deserialize.
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • PropertyDeserializationException

        public PropertyDeserializationException​(java.lang.String message,
                                                java.lang.String[] path,
                                                java.lang.Class<?> targetType,
                                                PropertyValue value,
                                                java.lang.Throwable cause)
        Creates a new PropertyDeserializationException.
        Parameters:
        message - the error message
        path - the property path where deserialization failed
        targetType - the type that was being deserialized to
        value - the PropertyValue that failed to deserialize
        cause - the underlying cause, if any
    • Method Detail

      • getPath

        public java.lang.String[] getPath()
        Gets the property path where deserialization failed.
        Returns:
        a copy of the property path array
      • getTargetType

        public java.lang.Class<?> getTargetType()
        Gets the target type that was being deserialized to.
        Returns:
        the target type class
      • getValue

        public PropertyValue getValue()
        Gets the PropertyValue that failed to deserialize.
        Returns:
        the original PropertyValue