Class InvalidConfigurationPropertyValueException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.boot.context.properties.source.InvalidConfigurationPropertyValueException
- All Implemented Interfaces:
- Serializable
Exception thrown when a configuration property value is invalid.
- Since:
- 2.0.0
- Author:
- Stephane Nicoll
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionInvalidConfigurationPropertyValueException(String name, @Nullable Object value, @Nullable String reason) Creates a new instance for the specified propertynameandvalue, including areasonwhy the value is invalid.
- 
Method SummaryMethods inherited from class ThrowableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
- 
Constructor Details- 
InvalidConfigurationPropertyValueExceptionpublic InvalidConfigurationPropertyValueException(String name, @Nullable Object value, @Nullable String reason) Creates a new instance for the specified propertynameandvalue, including areasonwhy the value is invalid.- Parameters:
- name- the name of the property in canonical format
- value- the value of the property, can be- null
- reason- a human-readable text that describes why the reason is invalid. Starts with an upper-case and ends with a dot. Several sentences and carriage returns are allowed.
 
 
- 
- 
Method Details- 
getName
- 
getValueReturn the invalid value, can benull.- Returns:
- the invalid value
 
- 
getReason
 
-