com.pega.pegarules.pub.database
Class ConnectionException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.pega.pegarules.pub.PRException
              extended by com.pega.pegarules.pub.database.DatabaseException
                  extended by com.pega.pegarules.pub.database.ConnectionException
All Implemented Interfaces:
java.io.Serializable

public class ConnectionException
extends DatabaseException

This class and its subclasses represent database-related connectivity errors (as opposed to operational errors).

Version:
$Revision: 21233 $ $Date: 2012-02-23 17:04:03 -0500 (Thu, 23 Feb 2012) $
Author:
Jamie Gentry
See Also:
Serialized Form

Field Summary
static java.lang.String COPYRIGHT
           
static java.lang.String VERSION
           
 
Constructor Summary
ConnectionException(java.lang.Throwable aCause, int aSeverity, java.lang.String aDescr, java.lang.String aDBName, java.lang.String aSQL, java.lang.String[] aSQLInserts)
          Creates a connection exception.
ConnectionException(java.lang.Throwable aCause, java.lang.String aMsgID, java.lang.String[] aMsgInserts, int aSeverity, java.lang.String aSQL, java.lang.String[] aSQLInserts, java.lang.String aDBName)
          Creates a connection exception.
ConnectionException(java.lang.Throwable aCause, java.lang.Throwable aSecCause, java.lang.String aMsgID, java.lang.String[] aMsgInserts, int aSeverity, java.lang.String aSQL, java.lang.String[] aSQLInserts, java.lang.String aDBName)
          Creates a connection exception.
 
Method Summary
 java.lang.String getDBName()
          Returns the name of the database that had the error.
 java.lang.String getHandler()
          Returns the name of the error handler flow specified by the Rule-Connect-SQL instance.
 void setHandler(java.lang.String aHandler)
          Sets the name of the error handler flow specified by the Rule-Connect-SQL instance.
 
Methods inherited from class com.pega.pegarules.pub.database.DatabaseException
getSQL, setSQL, setSQLInserts
 
Methods inherited from class com.pega.pegarules.pub.PRException
toString
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT
See Also:
Constant Field Values

VERSION

public static final java.lang.String VERSION
Constructor Detail

ConnectionException

public ConnectionException(java.lang.Throwable aCause,
                           int aSeverity,
                           java.lang.String aDescr,
                           java.lang.String aDBName,
                           java.lang.String aSQL,
                           java.lang.String[] aSQLInserts)
Creates a connection exception.

Parameters:
aCause - the exception that caused this exception
aSeverity - the severity of this exception: one of the ProcessingStatus SEVERITY constants
aDescr - what was going on when the problem occurred
aDBName - the database that had the problem
aSQL - the SQL that was running when the problem occurred (or null if none)
aSQLInserts - the inserts for aSQL (or null if none)

ConnectionException

public ConnectionException(java.lang.Throwable aCause,
                           java.lang.String aMsgID,
                           java.lang.String[] aMsgInserts,
                           int aSeverity,
                           java.lang.String aSQL,
                           java.lang.String[] aSQLInserts,
                           java.lang.String aDBName)
Creates a connection exception.

Parameters:
aCause - the exception that caused this exception
aMsgID - the ID of the message to asociate with the exception
aMsgInserts - the inserts that go into aMsgID
aSeverity - the severity of this exception: one of the ProcessingStatus SEVERITY constants
aSQL - the SQL that was running when the problem occurred (or null if none)
aSQLInserts - the inserts for aSQL (or null if none)
aDBName - the database that had the problem

ConnectionException

public ConnectionException(java.lang.Throwable aCause,
                           java.lang.Throwable aSecCause,
                           java.lang.String aMsgID,
                           java.lang.String[] aMsgInserts,
                           int aSeverity,
                           java.lang.String aSQL,
                           java.lang.String[] aSQLInserts,
                           java.lang.String aDBName)
Creates a connection exception.

Parameters:
aCause - the exception that caused this exception
aSecCause -
aMsgID - the ID of the message to asociate with the exception
aMsgInserts - the inserts that go into aMsgID
aSeverity - the severity of this exception: one of the ProcessingStatus SEVERITY constants
aSQL - the SQL that was running when the problem occurred (or null if none)
aSQLInserts - the inserts for aSQL (or null if none)
aDBName - the database that had the problem
Method Detail

getDBName

public java.lang.String getDBName()
Returns the name of the database that had the error.

Returns:
the name of the database

setHandler

public void setHandler(java.lang.String aHandler)
Sets the name of the error handler flow specified by the Rule-Connect-SQL instance.

Parameters:
aHandler - the name of the handler flow

getHandler

public java.lang.String getHandler()
Returns the name of the error handler flow specified by the Rule-Connect-SQL instance.

Returns:
the name of the handler flow


Copyright © 2012 Pegasystems Inc. All Rights Reserved.