org.jcoderz.commons
Class InconsistentDatabaseException

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.InconsistentDatabaseException
All Implemented Interfaces:
Serializable, Loggable
Direct Known Subclasses:
DatabaseIntegrityErrorException

public class InconsistentDatabaseException
extends BaseRuntimeException

A value read from the database was invalid. The database value {Serializable:ARGUMENT_VALUE} of column {COLUMN} in table {TABLE} could not be converted into the java type {TYPE}. Possibly the database has been modified manually, or the software that wrote the database contains a bug. This exception encapsulates the log message RteLogMessage.INCONSISTENT_DATABASE.

Author:
generated
See Also:
Serialized Form

Constructor Summary
protected InconsistentDatabaseException(RteLogMessage messageInfo)
          Constructor getting an log message info.
protected InconsistentDatabaseException(RteLogMessage messageInfo, Throwable cause)
          Constructor getting an log message info and a root exception.
  InconsistentDatabaseException(Serializable argumentValue, String column, String table, String type)
          Constructs a inconsistent database exception with a cause.
  InconsistentDatabaseException(Serializable argumentValue, String column, String table, String type, Throwable cause)
          Constructs a inconsistent database exception with a cause.
 
Method Summary
 Serializable valueOfArgumentValue()
          Returns the value of the parameter argumentValue.
 String valueOfColumn()
          Returns the value of the parameter column.
 String valueOfTable()
          Returns the value of the parameter table.
 String valueOfType()
          Returns the value of the parameter type.
 
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

InconsistentDatabaseException

public InconsistentDatabaseException(Serializable argumentValue,
                                     String column,
                                     String table,
                                     String type,
                                     Throwable cause)
Constructs a inconsistent database exception with a cause.

Parameters:
argumentValue - The argument value used in the message.
column - The column used in the message.
table - The table used in the message.
type - The type used in the message.
cause - the cause of this exception.

InconsistentDatabaseException

public InconsistentDatabaseException(Serializable argumentValue,
                                     String column,
                                     String table,
                                     String type)
Constructs a inconsistent database exception with a cause.

Parameters:
argumentValue - The argument value used in the message.
column - The column used in the message.
table - The table used in the message.
type - The type used in the message.

InconsistentDatabaseException

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

InconsistentDatabaseException

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

valueOfArgumentValue

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

Returns:
the value of the parameter argumentValue.

valueOfColumn

public String valueOfColumn()
Returns the value of the parameter column.

Returns:
the value of the parameter column.

valueOfTable

public String valueOfTable()
Returns the value of the parameter table.

Returns:
the value of the parameter table.

valueOfType

public String valueOfType()
Returns the value of the parameter type.

Returns:
the value of the parameter type.


Copyright 2007 The jCoderZ Project.