org.jcoderz.commons
Class ArgumentMinLengthViolationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.jcoderz.commons.BaseRuntimeException
                  extended by org.jcoderz.commons.ArgumentMalformedException
                      extended by org.jcoderz.commons.ArgumentMinLengthViolationException
All Implemented Interfaces:
Serializable, Loggable

public class ArgumentMinLengthViolationException
extends ArgumentMalformedException

The given argument is at least partly malformed. Argument ''{ARGUMENT_NAME}'' cannot be set to value ''{Serializable:ARGUMENT_VALUE}''. The length of the Value ({Integer:ARGUMENT_LENGTH}) is below the allowed minimum length ({Integer:MIN_LENGTH}) for {Class:ARGUMENT_CLASS}. This exception encapsulates the log message RteLogMessage.ARGUMENT_MIN_LENGTH_VIOLATION.

Author:
generated
See Also:
Serialized Form

Constructor Summary
protected ArgumentMinLengthViolationException(RteLogMessage messageInfo)
          Constructor getting an log message info.
protected ArgumentMinLengthViolationException(RteLogMessage messageInfo, Throwable cause)
          Constructor getting an log message info and a root exception.
  ArgumentMinLengthViolationException(String argumentName, Serializable argumentValue, Integer argumentLength, Integer minLength, Class argumentClass)
          Constructs a argument min length violation exception with a cause.
  ArgumentMinLengthViolationException(String argumentName, Serializable argumentValue, Integer argumentLength, Integer minLength, Class argumentClass, Throwable cause)
          Constructs a argument min length violation exception with a cause.
 
Method Summary
 Class valueOfArgumentClass()
          Returns the value of the parameter argumentClass.
 Integer valueOfArgumentLength()
          Returns the value of the parameter argumentLength.
 String valueOfArgumentName()
          Returns the value of the parameter argumentName.
 Serializable valueOfArgumentValue()
          Returns the value of the parameter argumentValue.
 Integer valueOfMinLength()
          Returns the value of the parameter minLength.
 
Methods inherited from class org.jcoderz.commons.ArgumentMalformedException
valueOfHint
 
Methods inherited from class org.jcoderz.commons.BaseRuntimeException
addParameter, getCause, getEventTime, getInstanceId, getLogMessageInfo, getMessage, getNodeId, getParameter, getParameterNames, getSourceClass, getSourceMethod, getThreadId, getThreadName, getTrackingNumber, initCause, log, logCreation, toDetailedString, toString
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getStackTrace, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ArgumentMinLengthViolationException

public ArgumentMinLengthViolationException(String argumentName,
                                           Serializable argumentValue,
                                           Integer argumentLength,
                                           Integer minLength,
                                           Class argumentClass,
                                           Throwable cause)
Constructs a argument min length violation exception with a cause.

Parameters:
argumentName - The argument name used in the message.
argumentValue - The argument value used in the message.
argumentLength - The argument length used in the message.
minLength - The min length used in the message.
argumentClass - The argument class used in the message.
cause - the cause of this exception.

ArgumentMinLengthViolationException

public ArgumentMinLengthViolationException(String argumentName,
                                           Serializable argumentValue,
                                           Integer argumentLength,
                                           Integer minLength,
                                           Class argumentClass)
Constructs a argument min length violation exception with a cause.

Parameters:
argumentName - The argument name used in the message.
argumentValue - The argument value used in the message.
argumentLength - The argument length used in the message.
minLength - The min length used in the message.
argumentClass - The argument class used in the message.

ArgumentMinLengthViolationException

protected ArgumentMinLengthViolationException(RteLogMessage messageInfo)
Constructor getting an log message info. This constructor is for generated exceptions internal use only.

Parameters:
messageInfo - the log message info for this exception

ArgumentMinLengthViolationException

protected ArgumentMinLengthViolationException(RteLogMessage messageInfo,
                                              Throwable cause)
Constructor getting an log message info and a root exception. This constructor is for generated exceptions internal use only.

Parameters:
messageInfo - the log message info for this exception
cause - the problem that caused this exception to be thrown
Method Detail

valueOfArgumentName

public String valueOfArgumentName()
Returns the value of the parameter argumentName.

Overrides:
valueOfArgumentName in class ArgumentMalformedException
Returns:
the value of the parameter argumentName.

valueOfArgumentValue

public Serializable valueOfArgumentValue()
Returns the value of the parameter argumentValue.

Overrides:
valueOfArgumentValue in class ArgumentMalformedException
Returns:
the value of the parameter argumentValue.

valueOfArgumentLength

public Integer valueOfArgumentLength()
Returns the value of the parameter argumentLength.

Returns:
the value of the parameter argumentLength.

valueOfMinLength

public Integer valueOfMinLength()
Returns the value of the parameter minLength.

Returns:
the value of the parameter minLength.

valueOfArgumentClass

public Class valueOfArgumentClass()
Returns the value of the parameter argumentClass.

Returns:
the value of the parameter argumentClass.


Copyright 2007 The jCoderZ Project.