PAJES 2.3.9

org.pajes.db.entity
Class EntityException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.RuntimeException
              extended byorg.pajes.db.entity.EntityException
All Implemented Interfaces:
java.io.Serializable

public class EntityException
extends java.lang.RuntimeException

Thrown when a run-time exception relating to Entity processing occurs.

See Also:
Serialized Form

Field Summary
static java.lang.String CLASS_CAST_EXCEPTION
          Message key for when an Manager attempts to create a new Entity instance, and fails with a ClassCastException.
static java.lang.String CREATE_FAILURE
          Message key for when an Manager fails to create a new Entity instance.
static java.lang.String ENTITY_EDITOR_CREATE_FAILURE
          Message key for when a Manager sub-class fails to instantiate its default Editor.
static java.lang.String ENTITY_EDITOR_NOT_DEFINED
          Message key for when an MaintenanceServlet sub-class fails to initialise its Editor instance.
static java.lang.String ENTITY_LISTER_CREATE_FAILURE
          Message key for when a Manager sub-class fails to instantiate its default Lister.
static java.lang.String ENTITY_LISTER_NOT_DEFINED
          Message key for when an MaintenanceServlet sub-class fails to initialise its Lister instance.
static java.lang.String ENTITY_VIEWER_CREATE_FAILURE
          Message key for when a Manager sub-class fails to instantiate its default Viewer.
static java.lang.String ENTITY_VIEWER_NOT_DEFINED
          Message key for when an MaintenanceServlet sub-class fails to initialise its Viewer instance.
static java.lang.String ILLEGAL_MANAGER_SUB_CLASS
          Message key for when the Registry attempts to register an Manager instance that is not a sub-class of the class specified as the super-class of all Managers in the Registry.
static java.lang.String MANAGER_ALREADY_EXISTS
          Message key for when the Registry attempts to register an Manager instance when one already exists for that class.
static java.lang.String MANAGER_CREATE_FAILURE
          Message key for when the Registry fails to create a new Manager instance.
static java.lang.String MISSING_PROTOTYPE_ROW
          Message key for when an Manager is attempting to produce a list of Entity objects, but a prototype row is missing from the template list table.
static java.lang.String MULTIPLE_REQUEST_VALUES
          Message key for when an Entity finds multiple values with the same column name in the request object.
static java.lang.String NO_DEFAULT_POOL
          Message key for when the Registry has been asked for an Manager that has not yet been registered, and no default ConnectionPool has been defined to allow automatic registration.
static java.lang.String NO_IN_CLAUSE_VALUES
          Message key for when the Scope has been asked to create an IN clause with an empty array of values.
static java.lang.String PARSE_EXCEPTION
          Message key for when an Entity encounters a Exception when assigning a value to an EntityAtribute.
static java.lang.String READ_ONLY
          Message key for when an attempt is made to update, delete or insert an Entity that is managed by a read-only Manager.
 
Constructor Summary
EntityException(java.lang.String messageKey)
          Creates a new exception, using the specified message key to locate the actual message to be displayed.
EntityException(java.lang.String messageKey, java.lang.String[] arguments)
          Creates a new exception, using the specified message key to locate the actual message to be displayed.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CLASS_CAST_EXCEPTION

public static final java.lang.String CLASS_CAST_EXCEPTION
Message key for when an Manager attempts to create a new Entity instance, and fails with a ClassCastException.

See Also:
Constant Field Values

CREATE_FAILURE

public static final java.lang.String CREATE_FAILURE
Message key for when an Manager fails to create a new Entity instance.

See Also:
Constant Field Values

ENTITY_EDITOR_CREATE_FAILURE

public static final java.lang.String ENTITY_EDITOR_CREATE_FAILURE
Message key for when a Manager sub-class fails to instantiate its default Editor.

See Also:
Constant Field Values

ENTITY_EDITOR_NOT_DEFINED

public static final java.lang.String ENTITY_EDITOR_NOT_DEFINED
Message key for when an MaintenanceServlet sub-class fails to initialise its Editor instance.

See Also:
Constant Field Values

ENTITY_LISTER_CREATE_FAILURE

public static final java.lang.String ENTITY_LISTER_CREATE_FAILURE
Message key for when a Manager sub-class fails to instantiate its default Lister.

See Also:
Constant Field Values

ENTITY_LISTER_NOT_DEFINED

public static final java.lang.String ENTITY_LISTER_NOT_DEFINED
Message key for when an MaintenanceServlet sub-class fails to initialise its Lister instance.

See Also:
Constant Field Values

ENTITY_VIEWER_CREATE_FAILURE

public static final java.lang.String ENTITY_VIEWER_CREATE_FAILURE
Message key for when a Manager sub-class fails to instantiate its default Viewer.

See Also:
Constant Field Values

ENTITY_VIEWER_NOT_DEFINED

public static final java.lang.String ENTITY_VIEWER_NOT_DEFINED
Message key for when an MaintenanceServlet sub-class fails to initialise its Viewer instance.

See Also:
Constant Field Values

ILLEGAL_MANAGER_SUB_CLASS

public static final java.lang.String ILLEGAL_MANAGER_SUB_CLASS
Message key for when the Registry attempts to register an Manager instance that is not a sub-class of the class specified as the super-class of all Managers in the Registry.

See Also:
Constant Field Values

MANAGER_ALREADY_EXISTS

public static final java.lang.String MANAGER_ALREADY_EXISTS
Message key for when the Registry attempts to register an Manager instance when one already exists for that class.

See Also:
Constant Field Values

MANAGER_CREATE_FAILURE

public static final java.lang.String MANAGER_CREATE_FAILURE
Message key for when the Registry fails to create a new Manager instance.

See Also:
Constant Field Values

MISSING_PROTOTYPE_ROW

public static final java.lang.String MISSING_PROTOTYPE_ROW
Message key for when an Manager is attempting to produce a list of Entity objects, but a prototype row is missing from the template list table.

See Also:
Constant Field Values

MULTIPLE_REQUEST_VALUES

public static final java.lang.String MULTIPLE_REQUEST_VALUES
Message key for when an Entity finds multiple values with the same column name in the request object.

See Also:
Constant Field Values

NO_DEFAULT_POOL

public static final java.lang.String NO_DEFAULT_POOL
Message key for when the Registry has been asked for an Manager that has not yet been registered, and no default ConnectionPool has been defined to allow automatic registration.

See Also:
Constant Field Values

NO_IN_CLAUSE_VALUES

public static final java.lang.String NO_IN_CLAUSE_VALUES
Message key for when the Scope has been asked to create an IN clause with an empty array of values.

See Also:
Constant Field Values

PARSE_EXCEPTION

public static final java.lang.String PARSE_EXCEPTION
Message key for when an Entity encounters a Exception when assigning a value to an EntityAtribute.

See Also:
Constant Field Values

READ_ONLY

public static final java.lang.String READ_ONLY
Message key for when an attempt is made to update, delete or insert an Entity that is managed by a read-only Manager.

See Also:
Constant Field Values
Constructor Detail

EntityException

public EntityException(java.lang.String messageKey)
Creates a new exception, using the specified message key to locate the actual message to be displayed. If no matching message key is found, the key is returned as the message.

Parameters:
messageKey - the key from which the actual exception message will be located.

EntityException

public EntityException(java.lang.String messageKey,
                       java.lang.String[] arguments)
Creates a new exception, using the specified message key to locate the actual message to be displayed. If no matching message key is found, the key is returned as the message.

Parameters:
messageKey - the key from which the actual exception message will be located.
arguments - any arguments to be passed to create the complete message.

PAJES 2.3.9

Copyright © 2002-2003 Viridian Pty Limited. All Rights Reserved.