org.jcoderz.commons
Class DatabaseIntegrityErrorException

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
                      extended by org.jcoderz.commons.DatabaseIntegrityErrorException
All Implemented Interfaces:
Serializable, Loggable

public class DatabaseIntegrityErrorException
extends InconsistentDatabaseException

While accessing table {TABLE}, the following problem was encountered: {PROBLEM}. This exception encapsulates the log message RteLogMessage.DATABASE_INTEGRITY_ERROR.

Author:
generated
See Also:
Serialized Form

Constructor Summary
protected DatabaseIntegrityErrorException(RteLogMessage messageInfo)
          Constructor getting an log message info.
protected DatabaseIntegrityErrorException(RteLogMessage messageInfo, Throwable cause)
          Constructor getting an log message info and a root exception.
  DatabaseIntegrityErrorException(String table, String problem)
          Constructs a database integrity error exception with a cause.
  DatabaseIntegrityErrorException(String table, String problem, Throwable cause)
          Constructs a database integrity error exception with a cause.
 
Method Summary
 String valueOfProblem()
          Returns the value of the parameter problem.
 String valueOfTable()
          Returns the value of the parameter table.
 
Methods inherited from class org.jcoderz.commons.InconsistentDatabaseException
valueOfArgumentValue, valueOfColumn, valueOfType
 
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

DatabaseIntegrityErrorException

public DatabaseIntegrityErrorException(String table,
                                       String problem,
                                       Throwable cause)
Constructs a database integrity error exception with a cause.

Parameters:
table - The table used in the message.
problem - The problem used in the message.
cause - the cause of this exception.

DatabaseIntegrityErrorException

public DatabaseIntegrityErrorException(String table,
                                       String problem)
Constructs a database integrity error exception with a cause.

Parameters:
table - The table used in the message.
problem - The problem used in the message.

DatabaseIntegrityErrorException

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

DatabaseIntegrityErrorException

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

valueOfTable

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

Overrides:
valueOfTable in class InconsistentDatabaseException
Returns:
the value of the parameter table.

valueOfProblem

public String valueOfProblem()
Returns the value of the parameter problem.

Returns:
the value of the parameter problem.


Copyright 2007 The jCoderZ Project.