org.jcoderz.commons
Class EntityNotFoundException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.jcoderz.commons.BaseException
              extended by org.jcoderz.commons.EntityNotFoundException
All Implemented Interfaces:
Serializable, Loggable

public class EntityNotFoundException
extends BaseException

A database entry in table {TABLE} was not found. No rows were returned when executing the finder method ''{FINDER}'' with the argument(s) ''{Serializable:ARGUMENTS}'' on entity bean {ENTITY}. This exception encapsulates the log message CmnLogMessage.ENTITY_NOT_FOUND.

Author:
generated
See Also:
Serialized Form

Constructor Summary
protected EntityNotFoundException(CmnLogMessage messageInfo)
          Constructor getting an log message info.
protected EntityNotFoundException(CmnLogMessage messageInfo, Throwable cause)
          Constructor getting an log message info and a root exception.
  EntityNotFoundException(String table, String finder, Serializable arguments, String entity)
          Constructs a entity not found exception with a cause.
  EntityNotFoundException(String table, String finder, Serializable arguments, String entity, Throwable cause)
          Constructs a entity not found exception with a cause.
 
Method Summary
 Serializable valueOfArguments()
          Returns the value of the parameter arguments.
 String valueOfEntity()
          Returns the value of the parameter entity.
 String valueOfFinder()
          Returns the value of the parameter finder.
 String valueOfTable()
          Returns the value of the parameter table.
 
Methods inherited from class org.jcoderz.commons.BaseException
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

EntityNotFoundException

public EntityNotFoundException(String table,
                               String finder,
                               Serializable arguments,
                               String entity,
                               Throwable cause)
Constructs a entity not found exception with a cause.

Parameters:
table - The table used in the message.
finder - The finder used in the message.
arguments - The arguments used in the message.
entity - The entity used in the message.
cause - the cause of this exception.

EntityNotFoundException

public EntityNotFoundException(String table,
                               String finder,
                               Serializable arguments,
                               String entity)
Constructs a entity not found exception with a cause.

Parameters:
table - The table used in the message.
finder - The finder used in the message.
arguments - The arguments used in the message.
entity - The entity used in the message.

EntityNotFoundException

protected EntityNotFoundException(CmnLogMessage 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

EntityNotFoundException

protected EntityNotFoundException(CmnLogMessage 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.

Returns:
the value of the parameter table.

valueOfFinder

public String valueOfFinder()
Returns the value of the parameter finder.

Returns:
the value of the parameter finder.

valueOfArguments

public Serializable valueOfArguments()
Returns the value of the parameter arguments.

Returns:
the value of the parameter arguments.

valueOfEntity

public String valueOfEntity()
Returns the value of the parameter entity.

Returns:
the value of the parameter entity.


Copyright 2007 The jCoderZ Project.