public class BeanValidationException
extends java.lang.Exception
BeanValidator.validateBean(com.install4j.api.beans.Bean)
.
The user will be notified with a message that is constructed from the supplied information.Constructor and Description |
---|
BeanValidationException(java.lang.String errorMessage)
Constructor with an error message.
|
BeanValidationException(java.lang.String errorMessage,
java.lang.String propertyName)
Constructor with an error message and a property name.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCustomizerTabName()
Get the name of the customizer tab that was set with
setCustomizerTabName . |
java.lang.String |
getPropertyName()
Get the name of the invalid property, or
null if no property name was specified in the constructor. |
void |
setCustomizerTabName(java.lang.String customizerTabName)
Set the name of the customizer tab, if the error message applies to a customizer.
|
public BeanValidationException(java.lang.String errorMessage)
errorMessage
- the error messagepublic BeanValidationException(java.lang.String errorMessage, java.lang.String propertyName)
errorMessage
- the error messagepropertyName
- the name of the invalid propertypublic java.lang.String getPropertyName()
null
if no property name was specified in the constructor.public void setCustomizerTabName(java.lang.String customizerTabName)
name
property of the javax.swing.JComponent
or, if the customizer is a
javax.swing.JTabbedPane
, the name of the tab.customizerTabName
- the nameInstall4JBeanInfo.Install4JBeanInfo(String, String, String, boolean, boolean, Integer, Class, Class)
public java.lang.String getCustomizerTabName()
setCustomizerTabName
.setCustomizerTabName(String)