Class PropertyDeserializationException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.pulumi.provider.internal.properties.PropertyDeserializationException
-
- All Implemented Interfaces:
java.io.Serializable
public class PropertyDeserializationException extends java.lang.RuntimeExceptionException 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.PropertyValuegetValue()Gets the PropertyValue that failed to deserialize.
-
-
-
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 messagepath- the property path where deserialization failedtargetType- the type that was being deserialized tovalue- the PropertyValue that failed to deserializecause- 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
-
-