org.jcoderz.commons
Class ArgumentFractionDigitsViolationException

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.ArgumentFractionDigitsViolationException
All Implemented Interfaces:
Serializable, Loggable

public class ArgumentFractionDigitsViolationException
extends ArgumentMalformedException

The given argument is at least partly malformed. Argument ''{ARGUMENT_NAME}'' cannot be set to value ''{Serializable:ARGUMENT_VALUE}''. The value has {Number:ARGUMENT_FRACTION_DIGITS} fraction digits and exceeds the allowed maximum {Number:MAX_FRACTION_DIGITS} for {Class:ARGUMENT_CLASS}. This exception encapsulates the log message RteLogMessage.ARGUMENT_FRACTION_DIGITS_VIOLATION.

Author:
generated
See Also:
Serialized Form

Constructor Summary
protected ArgumentFractionDigitsViolationException(RteLogMessage messageInfo)
          Constructor getting an log message info.
protected ArgumentFractionDigitsViolationException(RteLogMessage messageInfo, Throwable cause)
          Constructor getting an log message info and a root exception.
  ArgumentFractionDigitsViolationException(String argumentName, Serializable argumentValue, Number argumentFractionDigits, Number maxFractionDigits, Class argumentClass)
          Constructs a argument fraction digits violation exception with a cause.
  ArgumentFractionDigitsViolationException(String argumentName, Serializable argumentValue, Number argumentFractionDigits, Number maxFractionDigits, Class argumentClass, Throwable cause)
          Constructs a argument fraction digits violation exception with a cause.
 
Method Summary
 Class valueOfArgumentClass()
          Returns the value of the parameter argumentClass.
 Number valueOfArgumentFractionDigits()
          Returns the value of the parameter argumentFractionDigits.
 String valueOfArgumentName()
          Returns the value of the parameter argumentName.
 Serializable valueOfArgumentValue()
          Returns the value of the parameter argumentValue.
 Number valueOfMaxFractionDigits()
          Returns the value of the parameter maxFractionDigits.
 
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

ArgumentFractionDigitsViolationException

public ArgumentFractionDigitsViolationException(String argumentName,
                                                Serializable argumentValue,
                                                Number argumentFractionDigits,
                                                Number maxFractionDigits,
                                                Class argumentClass,
                                                Throwable cause)
Constructs a argument fraction digits violation exception with a cause.

Parameters:
argumentName - The argument name used in the message.
argumentValue - The argument value used in the message.
argumentFractionDigits - The argument fraction digits used in the message.
maxFractionDigits - The max fraction digits used in the message.
argumentClass - The argument class used in the message.
cause - the cause of this exception.

ArgumentFractionDigitsViolationException

public ArgumentFractionDigitsViolationException(String argumentName,
                                                Serializable argumentValue,
                                                Number argumentFractionDigits,
                                                Number maxFractionDigits,
                                                Class argumentClass)
Constructs a argument fraction digits violation exception with a cause.

Parameters:
argumentName - The argument name used in the message.
argumentValue - The argument value used in the message.
argumentFractionDigits - The argument fraction digits used in the message.
maxFractionDigits - The max fraction digits used in the message.
argumentClass - The argument class used in the message.

ArgumentFractionDigitsViolationException

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

ArgumentFractionDigitsViolationException

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

valueOfArgumentFractionDigits

public Number valueOfArgumentFractionDigits()
Returns the value of the parameter argumentFractionDigits.

Returns:
the value of the parameter argumentFractionDigits.

valueOfMaxFractionDigits

public Number valueOfMaxFractionDigits()
Returns the value of the parameter maxFractionDigits.

Returns:
the value of the parameter maxFractionDigits.

valueOfArgumentClass

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

Returns:
the value of the parameter argumentClass.


Copyright 2007 The jCoderZ Project.