org.jcoderz.commons
Class RteLogMessage.ArgumentFractionDigitsViolation

java.lang.Object
  extended by org.jcoderz.commons.LogMessageInfoImpl
      extended by org.jcoderz.commons.RteLogMessage
          extended by org.jcoderz.commons.RteLogMessage.ArgumentFractionDigitsViolation
All Implemented Interfaces:
Serializable, LogMessageInfo
Enclosing class:
RteLogMessage

public static final class RteLogMessage.ArgumentFractionDigitsViolation
extends RteLogMessage
implements Serializable

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 class holds the static data for the ARGUMENT_FRACTION_DIGITS_VIOLATION log message.

It holds the following parameters:

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.jcoderz.commons.RteLogMessage
RteLogMessage.ArgumentFractionDigitsViolation, RteLogMessage.ArgumentMalformed, RteLogMessage.ArgumentMaxLengthViolation, RteLogMessage.ArgumentMaxValueViolation, RteLogMessage.ArgumentMinLengthViolation, RteLogMessage.ArgumentMinValueViolation, RteLogMessage.ArgumentPatternViolation, RteLogMessage.AssertionFailed, RteLogMessage.DatabaseAccessFailed, RteLogMessage.DatabaseIntegrityError, RteLogMessage.ExceptionCreated, RteLogMessage.InconsistentDatabase, RteLogMessage.InternalError, RteLogMessage.RemoteCallFailure, RteLogMessage.RuntimeExceptionCreated, RteLogMessage.UnexpectedException
 
Field Summary
static int INT_VALUE
          The unique integer value of the log message ARGUMENT_FRACTION_DIGITS_VIOLATION.
static Level LOG_LEVEL
          The LogLevel to use.
static String PARAM_ARGUMENT_CLASS
          The parameter ARGUMENT_CLASS for the log message text.
static String PARAM_ARGUMENT_FRACTION_DIGITS
          The parameter ARGUMENT_FRACTION_DIGITS for the log message text.
static String PARAM_ARGUMENT_NAME
          The parameter ARGUMENT_NAME for the log message text.
static String PARAM_ARGUMENT_VALUE
          The parameter ARGUMENT_VALUE for the log message text.
static String PARAM_MAX_FRACTION_DIGITS
          The parameter MAX_FRACTION_DIGITS for the log message text.
static String SYMBOL
          The unique symbolic String of the log message ARGUMENT_FRACTION_DIGITS_VIOLATION.
 
Fields inherited from class org.jcoderz.commons.RteLogMessage
ARGUMENT_FRACTION_DIGITS_VIOLATION, ARGUMENT_MALFORMED, ARGUMENT_MAX_LENGTH_VIOLATION, ARGUMENT_MAX_VALUE_VIOLATION, ARGUMENT_MIN_LENGTH_VIOLATION, ARGUMENT_MIN_VALUE_VIOLATION, ARGUMENT_PATTERN_VIOLATION, ASSERTION_FAILED, DATABASE_ACCESS_FAILED, DATABASE_INTEGRITY_ERROR, EXCEPTION_CREATED, INCONSISTENT_DATABASE, INTERNAL_ERROR, REMOTE_CALL_FAILURE, RUNTIME_EXCEPTION_CREATED, UNEXPECTED_EXCEPTION
 
Method Summary
static Loggable addParameters(Loggable loggable, String argumentName, Serializable argumentValue, Number argumentFractionDigits, Number maxFractionDigits, Class argumentClass)
          Adds the given message parameters to the loggable.
 
Methods inherited from class org.jcoderz.commons.RteLogMessage
fromInt, fromString
 
Methods inherited from class org.jcoderz.commons.LogMessageInfoImpl
formatMessage, getAppName, getAppNameAbbreviation, getBusinessImpact, getCategory, getGroupName, getGroupNameAbbreviation, getLogLevel, getMessagePattern, getParameterList, getSolution, getSymbol, toInt, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

INT_VALUE

public static final int INT_VALUE
The unique integer value of the log message ARGUMENT_FRACTION_DIGITS_VIOLATION.

See Also:
Constant Field Values

PARAM_ARGUMENT_NAME

public static final String PARAM_ARGUMENT_NAME
The parameter ARGUMENT_NAME for the log message text.

See Also:
Constant Field Values

PARAM_ARGUMENT_VALUE

public static final String PARAM_ARGUMENT_VALUE
The parameter ARGUMENT_VALUE for the log message text.

See Also:
Constant Field Values

PARAM_ARGUMENT_FRACTION_DIGITS

public static final String PARAM_ARGUMENT_FRACTION_DIGITS
The parameter ARGUMENT_FRACTION_DIGITS for the log message text.

See Also:
Constant Field Values

PARAM_MAX_FRACTION_DIGITS

public static final String PARAM_MAX_FRACTION_DIGITS
The parameter MAX_FRACTION_DIGITS for the log message text.

See Also:
Constant Field Values

PARAM_ARGUMENT_CLASS

public static final String PARAM_ARGUMENT_CLASS
The parameter ARGUMENT_CLASS for the log message text.

See Also:
Constant Field Values

SYMBOL

public static final String SYMBOL
The unique symbolic String of the log message ARGUMENT_FRACTION_DIGITS_VIOLATION.

See Also:
Constant Field Values
description
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}.
solution
Supply a correct value for the argument.

LOG_LEVEL

public static final Level LOG_LEVEL
The LogLevel to use.

Method Detail

addParameters

public static Loggable addParameters(Loggable loggable,
                                     String argumentName,
                                     Serializable argumentValue,
                                     Number argumentFractionDigits,
                                     Number maxFractionDigits,
                                     Class argumentClass)
Adds the given message parameters to the loggable.

Parameters:
loggable - the loggable to initialize.
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.
Returns:
the given initialized loggable.


Copyright 2007 The jCoderZ Project.