Class InvalidConfigurationPropertyNameException
- java.lang.Object
- java.lang.Throwable
- java.lang.Exception
- java.lang.RuntimeException
- org.springframework.boot.context.properties.source.InvalidConfigurationPropertyNameException
- All Implemented Interfaces:
Serializable
public class InvalidConfigurationPropertyNameException extends RuntimeException
Exception thrown whenConfigurationPropertyName
has invalid characters.- Since:
- 2.0.0
- See Also:
- Serialized Form
Constructor Summary
Constructors Constructor Description InvalidConfigurationPropertyNameException(CharSequence name, List<Character> invalidCharacters)
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Character>
getInvalidCharacters()
CharSequence
getName()
static void
throwIfHasInvalidChars(CharSequence name, List<Character> invalidCharacters)
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
Constructor Detail
InvalidConfigurationPropertyNameException
public InvalidConfigurationPropertyNameException(CharSequence name, List<Character> invalidCharacters)
Method Detail
getInvalidCharacters
public List<Character> getInvalidCharacters()
getName
public CharSequence getName()
throwIfHasInvalidChars
public static void throwIfHasInvalidChars(CharSequence name, List<Character> invalidCharacters)