public class PropertyException extends Exception
Constructor and Description |
---|
PropertyException(Property<?> property,
String msg,
Throwable t)
Constructor with message and throwable
|
PropertyException(String msg)
Constructor with message
|
PropertyException(String propertyName,
String msg)
Will preappend the propertyName to the message,
"Property [propertyName] is invalid defined. |
PropertyException(String propertyName,
String msg,
Throwable t)
Will preappend the propertyName to the message,
"Property [propertyName] is invalid defined. |
PropertyException(String msg,
Throwable t)
Constructor with message and throwable
|
Modifier and Type | Method and Description |
---|---|
Property<?> |
getProperty()
The Property involved if any was given to the exception.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public PropertyException(String msg)
msg
- the messagepublic PropertyException(String propertyName, String msg)
"Property [propertyName] is invalid defined. "+msg
.propertyName
- the name of property which throws this exception.msg
- the message.public PropertyException(String propertyName, String msg, Throwable t)
"Property [propertyName] is invalid defined. "+msg
.propertyName
- the name of property which throws this exception.msg
- the messaget
- the throwable exception.public PropertyException(String msg, Throwable t)
msg
- the messaget
- the throwablepublic Property<?> getProperty()
null
, see message instead.