Class PropertyDeserializationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.pulumi.provider.internal.properties.PropertyDeserializationException
- All Implemented Interfaces:
Serializable
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 Summary
ConstructorsConstructorDescriptionPropertyDeserializationException(String message, String[] path, Class<?> targetType, PropertyValue value, Throwable cause) Creates a new PropertyDeserializationException. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
PropertyDeserializationException
public PropertyDeserializationException(String message, String[] path, Class<?> targetType, PropertyValue value, 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 Details
-
getPath
Gets the property path where deserialization failed.- Returns:
- a copy of the property path array
-
getTargetType
Gets the target type that was being deserialized to.- Returns:
- the target type class
-
getValue
Gets the PropertyValue that failed to deserialize.- Returns:
- the original PropertyValue
-