org.jcoderz.commons
Class ArgumentMalformedException

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
All Implemented Interfaces:
Serializable, Loggable
Direct Known Subclasses:
ArgumentFractionDigitsViolationException, ArgumentMaxLengthViolationException, ArgumentMaxValueViolationException, ArgumentMinLengthViolationException, ArgumentMinValueViolationException, ArgumentPatternViolationException

public class ArgumentMalformedException
extends BaseRuntimeException

The given argument is at least partly malformed. Argument ''{ARGUMENT_NAME}'' cannot be set to value ''{Serializable:ARGUMENT_VALUE}''. Detailed description: {HINT}. This exception encapsulates the log message RteLogMessage.ARGUMENT_MALFORMED.

Author:
generated
See Also:
Serialized Form

Constructor Summary
protected ArgumentMalformedException(RteLogMessage messageInfo)
          Constructor getting an log message info.
protected ArgumentMalformedException(RteLogMessage messageInfo, Throwable cause)
          Constructor getting an log message info and a root exception.
  ArgumentMalformedException(String argumentName, Serializable argumentValue, String hint)
          Constructs a argument malformed exception with a cause.
  ArgumentMalformedException(String argumentName, Serializable argumentValue, String hint, Throwable cause)
          Constructs a argument malformed exception with a cause.
 
Method Summary
 String valueOfArgumentName()
          Returns the value of the parameter argumentName.
 Serializable valueOfArgumentValue()
          Returns the value of the parameter argumentValue.
 String valueOfHint()
          Returns the value of the parameter hint.
 
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

ArgumentMalformedException

public ArgumentMalformedException(String argumentName,
                                  Serializable argumentValue,
                                  String hint,
                                  Throwable cause)
Constructs a argument malformed exception with a cause.

Parameters:
argumentName - The argument name used in the message.
argumentValue - The argument value used in the message.
hint - The hint used in the message.
cause - the cause of this exception.

ArgumentMalformedException

public ArgumentMalformedException(String argumentName,
                                  Serializable argumentValue,
                                  String hint)
Constructs a argument malformed exception with a cause.

Parameters:
argumentName - The argument name used in the message.
argumentValue - The argument value used in the message.
hint - The hint used in the message.

ArgumentMalformedException

protected ArgumentMalformedException(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

ArgumentMalformedException

protected ArgumentMalformedException(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.

Returns:
the value of the parameter argumentName.

valueOfArgumentValue

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

Returns:
the value of the parameter argumentValue.

valueOfHint

public String valueOfHint()
Returns the value of the parameter hint.

Returns:
the value of the parameter hint.


Copyright 2007 The jCoderZ Project.