Class GrouperValidationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
edu.internet2.middleware.grouper.exception.GrouperValidationException
- All Implemented Interfaces:
Serializable
validation problem for grouper action, has a validation key which could be used for a UI key
- See Also:
-
Constructor Summary
ConstructorDescriptionGrouperValidationException
(String message) GrouperValidationException
(String message, String theGrouperValidationKey) GrouperValidationException
(String message, String theGrouperValidationKey, Integer theMaxLength, Integer theCurrentLenth) GrouperValidationException
(String message, Throwable cause) -
Method Summary
Modifier and TypeMethodDescriptionif this is a maxLength exception, this is the current lengthkey for this validation problem, e.g.if this is a maxLength exception, this is the max lengthvoid
setCurrentLength
(Integer currentLength) if this is a maxLength exception, this is the current lengthvoid
setGrouperValidationKey
(String grouperValidationKey1) key for this validation problem, e.g.void
setMaxLength
(Integer maxLength1) if this is a maxLength exception, this is the max lengthMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
GrouperValidationException
public GrouperValidationException() -
GrouperValidationException
- Parameters:
message
-
-
GrouperValidationException
- Parameters:
theGrouperValidationKey
- key for this validation problem, e.g. could be used for a UI message keymessage
- for exception
-
GrouperValidationException
public GrouperValidationException(String message, String theGrouperValidationKey, Integer theMaxLength, Integer theCurrentLenth) - Parameters:
theGrouperValidationKey
- key for this validation problem, e.g. could be used for a UI message keymessage
- for exceptiontheMaxLength
- if this is a maxLength exception, this is the max lengththeCurrentLenth
- if this is a maxLength exception, this is the current length
-
GrouperValidationException
- Parameters:
cause
-
-
GrouperValidationException
- Parameters:
message
-cause
-
-
-
Method Details
-
getCurrentLength
if this is a maxLength exception, this is the current length- Returns:
- the currentLength
-
setCurrentLength
if this is a maxLength exception, this is the current length- Parameters:
currentLength
- the currentLength to set
-
getMaxLength
if this is a maxLength exception, this is the max length- Returns:
- the maxLength
-
setMaxLength
if this is a maxLength exception, this is the max length- Parameters:
maxLength1
- the maxLength to set
-
getGrouperValidationKey
key for this validation problem, e.g. could be used for a UI message key- Returns:
- the grouperValidationKey
-
setGrouperValidationKey
key for this validation problem, e.g. could be used for a UI message key- Parameters:
grouperValidationKey1
- the grouperValidationKey to set
-