Class PropertyDeserializationException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.pulumi.provider.internal.properties.PropertyDeserializationException
All Implemented Interfaces:
Serializable

public class PropertyDeserializationException extends 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:
  • Constructor Details

    • PropertyDeserializationException

      public PropertyDeserializationException(String message, String[] path, Class<?> targetType, PropertyValue value, 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 Details

    • getPath

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

      public 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