PAJES 2.3.9

org.pajes.db
Class ConnectionPoolException

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

public class ConnectionPoolException
extends java.lang.RuntimeException

Thrown when a run-time exception relating to a ConnectionPool occurs.

See Also:
Serialized Form

Field Summary
static java.lang.String CONFIG_PARSE_ERROR
          Message key for when a ConnectionPoolConfiguration finds an unmatched XML tag.
static java.lang.String DUPLICATE_POOL_NAME
          Message key for when a ConnectionPool is being defined with a name that is already in use.
static java.lang.String MISSING_POOL
          Message key for when a ConnectionPool is requested that does not exist.
static java.lang.String NOT_OWNER
          Message key for when an attempt is made to use a Connection that has already been released back to the free pool.
static java.lang.String NULL_CONNECTION_RETURNED_BY_DRIVER
          Message key for when an attempt is made to create a Connection but the Driver returns a null.
static java.lang.String RELEASE_FAILED
          Message key for when an attempt to release a Connection fails.
static java.lang.String TIME_OUT
          Message key for when a request for a Connection is unable to be satisfied within the ConnectionPool time-out period.
 
Constructor Summary
ConnectionPoolException(java.lang.String messageKey)
          Creates a new exception, using the specified message key to locate the actual message to be displayed.
ConnectionPoolException(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

CONFIG_PARSE_ERROR

public static final java.lang.String CONFIG_PARSE_ERROR
Message key for when a ConnectionPoolConfiguration finds an unmatched XML tag.

See Also:
Constant Field Values

DUPLICATE_POOL_NAME

public static final java.lang.String DUPLICATE_POOL_NAME
Message key for when a ConnectionPool is being defined with a name that is already in use.

See Also:
Constant Field Values

MISSING_POOL

public static final java.lang.String MISSING_POOL
Message key for when a ConnectionPool is requested that does not exist.

See Also:
Constant Field Values

NOT_OWNER

public static final java.lang.String NOT_OWNER
Message key for when an attempt is made to use a Connection that has already been released back to the free pool.

See Also:
Constant Field Values

NULL_CONNECTION_RETURNED_BY_DRIVER

public static final java.lang.String NULL_CONNECTION_RETURNED_BY_DRIVER
Message key for when an attempt is made to create a Connection but the Driver returns a null.

See Also:
Constant Field Values

RELEASE_FAILED

public static final java.lang.String RELEASE_FAILED
Message key for when an attempt to release a Connection fails.

See Also:
Constant Field Values

TIME_OUT

public static final java.lang.String TIME_OUT
Message key for when a request for a Connection is unable to be satisfied within the ConnectionPool time-out period.

See Also:
Constant Field Values
Constructor Detail

ConnectionPoolException

public ConnectionPoolException(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.

ConnectionPoolException

public ConnectionPoolException(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.