edu.internet2.middleware.grouper.exception
Class GrouperValidationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by edu.internet2.middleware.grouper.exception.GrouperValidationException
All Implemented Interfaces:
Serializable

public class GrouperValidationException
extends RuntimeException

validation problem for grouper action, has a validation key which could be used for a UI key

See Also:
Serialized Form

Constructor Summary
GrouperValidationException()
           
GrouperValidationException(String message)
           
GrouperValidationException(String message, String theGrouperValidationKey)
           
GrouperValidationException(String message, String theGrouperValidationKey, Integer theMaxLength, Integer theCurrentLenth)
           
GrouperValidationException(String message, Throwable cause)
           
GrouperValidationException(Throwable cause)
           
 
Method Summary
 Integer getCurrentLength()
          if this is a maxLength exception, this is the current length
 String getGrouperValidationKey()
          key for this validation problem, e.g.
 Integer getMaxLength()
          if this is a maxLength exception, this is the max length
 void setCurrentLength(Integer currentLength)
          if this is a maxLength exception, this is the current length
 void setGrouperValidationKey(String grouperValidationKey1)
          key for this validation problem, e.g.
 void setMaxLength(Integer maxLength1)
          if this is a maxLength exception, this is the max length
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GrouperValidationException

public GrouperValidationException()

GrouperValidationException

public GrouperValidationException(String message)
Parameters:
message -

GrouperValidationException

public GrouperValidationException(String message,
                                  String theGrouperValidationKey)
Parameters:
theGrouperValidationKey - key for this validation problem, e.g. could be used for a UI message key
message - 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 key
message - for exception
theMaxLength - if this is a maxLength exception, this is the max length
theCurrentLenth - if this is a maxLength exception, this is the current length

GrouperValidationException

public GrouperValidationException(Throwable cause)
Parameters:
cause -

GrouperValidationException

public GrouperValidationException(String message,
                                  Throwable cause)
Parameters:
message -
cause -
Method Detail

getCurrentLength

public Integer getCurrentLength()
if this is a maxLength exception, this is the current length

Returns:
the currentLength

setCurrentLength

public void setCurrentLength(Integer currentLength)
if this is a maxLength exception, this is the current length

Parameters:
currentLength - the currentLength to set

getMaxLength

public Integer getMaxLength()
if this is a maxLength exception, this is the max length

Returns:
the maxLength

setMaxLength

public void setMaxLength(Integer maxLength1)
if this is a maxLength exception, this is the max length

Parameters:
maxLength1 - the maxLength to set

getGrouperValidationKey

public String getGrouperValidationKey()
key for this validation problem, e.g. could be used for a UI message key

Returns:
the grouperValidationKey

setGrouperValidationKey

public void setGrouperValidationKey(String grouperValidationKey1)
key for this validation problem, e.g. could be used for a UI message key

Parameters:
grouperValidationKey1 - the grouperValidationKey to set