org.springframework.core.env
Class MissingRequiredPropertiesException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.IllegalStateException
org.springframework.core.env.MissingRequiredPropertiesException
- All Implemented Interfaces:
- Serializable
public class MissingRequiredPropertiesException
- extends IllegalStateException
Exception thrown when required properties are not found.
- Since:
- 3.1
- Author:
- Chris Beams
- See Also:
ConfigurablePropertyResolver.setRequiredProperties(String...)
,
ConfigurablePropertyResolver.validateRequiredProperties()
,
AbstractApplicationContext.prepareRefresh()
,
Serialized Form
MissingRequiredPropertiesException
public MissingRequiredPropertiesException()
getMissingRequiredProperties
public Set<String> getMissingRequiredProperties()
- Return the set of properties marked as required but not present
upon validation.
- See Also:
ConfigurablePropertyResolver.setRequiredProperties(String...)
,
ConfigurablePropertyResolver.validateRequiredProperties()
getMessage
public String getMessage()
- Overrides:
getMessage
in class Throwable