InvalidConfigurationPropertyNameException class final
The error for a name that should be canonical and is not, such as a
@ConfigurationProperties prefix written app.readTimeout instead of
app.read-timeout.
Thrown by ConfigurationPropertyName.of; the message lists the offending characters. Applications see it as a startup failure and fix the name.
try {
ConfigurationPropertyName.of('app.readTimeout');
} on InvalidConfigurationPropertyNameException catch (error) {
log.error(error.invalidCharacters); // [T]
}
Spring (Java): Spring Boot's InvalidConfigurationPropertyNameException.
- Implemented types
Constructors
-
InvalidConfigurationPropertyNameException(String name, List<
String> invalidCharacters) -
Creates the exception for
name, listing itsinvalidCharacters.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
invalidCharacters
→ List<
String> -
The characters of name that a canonical name cannot contain, each
once. Empty when the characters are fine but their arrangement is
not (
a..b,.a).final - name → String
-
The name that was rejected.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited