public static class ValidatorContext.ValidatorContextImpl extends ValidatorContext<java.lang.Exception>
ValidatorContext.StackRestorer, ValidatorContext.UpdateMode, ValidatorContext.ValidatorContextImpl
CLASS_VERSION, LOGGER
Constructor and Description |
---|
ValidatorContextImpl(boolean pCreate) |
Modifier and Type | Method and Description |
---|---|
protected java.lang.Exception |
createException(Validator<?> pValidator,
java.lang.String pMessage,
java.lang.String pPropertyName,
java.lang.Throwable pRootCause)
Create an exception of the parameterized subtype.
|
addException, addPropertyValueChangeListeners, addValidatorListener, appendPropertyPath, canApplyUpdatesToTarget, checkForPropertyValueChange, dumpWherePushed, dumpWherePushedNames, forceValidationOfExistingProperty, getAllowableUnknownPropertyNames, getAncestorCount, getAncestorDst, getAncestorSrc, getAttribute, getAttributes, getDefaultErrorCode, getDstParentOfClass, getErrorCount, getErrors, getFilter, getParentCount, getParentDst, getParentOfClass, getParentPropertyName, getParentsDst, getParentSrc, getParentsSrc, getPropertyNames, getPropertyPath, getPropertyPath, getRepositoryItemHelper, getSrcParentOfClass, getUpdateMode, getValidatorListeners, hasErrors, isCreate, isFetchingValueForCopy, isFilterForInclude, isModifiedValue, isNullOutPresentButNullProperties, isShouldRecurse, isSourceUsesExternalPropertyNames, isSuccess, isTreatUnknownPropertiesAsErrors, isUpdate, isUpdating, isValidateExistingProperties, notifyIfPropertyValueChanged, peekPropertyName, popParents, popParents, popPropertyName, pushParents, pushParentsIfNeeded, pushPropertyName, removeAttribute, removePropertyValueChangeListeners, removeValidatorListener, replaceParentDst, setAllowableUnknownPropertyNames, setApplyUpdatesToTarget, setAttribute, setCreate, setDefaultErrorCode, setErrors, setFetchingValueForCopy, setFilter, setFilterForInclude, setModifiedValue, setNullOutPresentButNullProperties, setRepositoryItemHelper, setShouldRecurse, setSourceUsesExternalPropertyNames, setTreatUnknownPropertiesAsErrors, setUpdateMode, setUpdating, setValidateExistingProperties, setValidatorListeners, throwException, validateBeanPropertyCalled, valuesDiffer
protected java.lang.Exception createException(Validator<?> pValidator, java.lang.String pMessage, java.lang.String pPropertyName, java.lang.Throwable pRootCause)
ValidatorContext
createException
in class ValidatorContext<java.lang.Exception>
pValidator
- the validator on whose behalf the exception
is being added (can provide an errorCode to use).pMessage
- the user visible message (should be localized)pPropertyName
- the property name to append to the pushed
property path on the context. May be null if there is nothing to add.pRootCause
- the throwable to use as a root cause. If non-null,
then pRootCause becomes the nested/caused-by exception.