public class InvalidConfigurationPropertyValueException extends RuntimeException
Constructor and Description |
---|
InvalidConfigurationPropertyValueException(String name,
Object value,
String reason)
Creates a new instance for the specified property
name and value ,
including a reason why the value is invalid. |
Modifier and Type | Method and Description |
---|---|
String |
getName()
Return the name of the property.
|
String |
getReason()
Return the reason why the value is invalid.
|
Object |
getValue()
Return the invalid value, can be
null . |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public InvalidConfigurationPropertyValueException(String name, Object value, String reason)
name
and value
,
including a reason
why the value is invalid.name
- the name of the property in canonical formatvalue
- 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.public String getName()
public Object getValue()
null
.public String getReason()
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.