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
- See Also:
-
Constructor Summary
ConstructorDescriptionInvalidConfigurationPropertyValueException
(String name, Object value, String reason) Creates a new instance for the specified propertyname
andvalue
, including areason
why the value is invalid. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
InvalidConfigurationPropertyValueException
Creates a new instance for the specified propertyname
andvalue
, including areason
why the value is invalid.- Parameters:
name
- the name of the property in canonical formatvalue
- the value of the property, can benull
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
Return the name of the property.- Returns:
- the property name
-
getValue
Return the invalid value, can benull
.- Returns:
- the invalid value
-
getReason
Return the reason why the value is invalid.- Returns:
- the reason
-