com.pega.pegarules.pub.database
Class ConfigurationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.pega.pegarules.pub.PRException
com.pega.pegarules.pub.database.DatabaseException
com.pega.pegarules.pub.database.ConfigurationException
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- BadDatabaseDefinitionException, NonexistentTableException
public class ConfigurationException
- extends DatabaseException
This exception is thrown if there is bad configuration. This might be
due to a database table with missing columns, or invalid information in a
Rule used by the database (such as Rule-Obj-Class
,
Data-Admin-DB-Name
, or Data-Admin-DB-Table
).
- Version:
- $Revision: 31 $ $Date: 2009-06-24 09:38:04 -0400 (Wed, 24 Jun 2009) $
- Author:
- Jamie Gentry
- See Also:
- Serialized Form
Constructor Summary |
ConfigurationException(java.lang.String aMsg)
|
ConfigurationException(java.lang.String aProblemDescr,
java.lang.String aDescr)
Creates a general configuration exception. |
ConfigurationException(java.lang.String aProblemDescr,
java.lang.String aDescr,
int aSeverity)
Creates a general configuration exception with a specified severity. |
ConfigurationException(java.lang.Throwable aCause,
java.lang.String aMsg)
|
ConfigurationException(java.lang.Throwable aCause,
java.lang.String aMsgID,
java.lang.String[] aMsgInserts,
int aSeverity,
java.lang.String aSQL,
java.lang.String[] aSQLInserts)
Creates a database exception with a
given severity, and with other information. |
Method Summary |
static ConfigurationException |
createMissingColumnException(java.lang.String aClass,
java.lang.String aTable,
java.lang.String aDB,
java.lang.String aColumn,
java.lang.String aDescr)
Creates an exception caused by a table that is missing a required column. |
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 |
COPYRIGHT
public static final java.lang.String COPYRIGHT
- See Also:
- Constant Field Values
VERSION
public static final java.lang.String VERSION
ConfigurationException
public ConfigurationException(java.lang.String aMsg)
ConfigurationException
public ConfigurationException(java.lang.Throwable aCause,
java.lang.String aMsg)
ConfigurationException
public ConfigurationException(java.lang.String aProblemDescr,
java.lang.String aDescr)
- Creates a general configuration exception. Sets the
processing status to error, with message
Database-Config
.
- Parameters:
aProblemDescr
- a description of the problemaDescr
- what we were doing when the problem occured
ConfigurationException
public ConfigurationException(java.lang.String aProblemDescr,
java.lang.String aDescr,
int aSeverity)
- Creates a general configuration exception with a specified severity. Sets the
processing status to error, with message
Database-Config
.
- Parameters:
aProblemDescr
- a description of the problemaDescr
- what we were doing when the problem occuredaSeverity
- the severity--must be one of the severity constants
from ProcessingStatus
ConfigurationException
public ConfigurationException(java.lang.Throwable aCause,
java.lang.String aMsgID,
java.lang.String[] aMsgInserts,
int aSeverity,
java.lang.String aSQL,
java.lang.String[] aSQLInserts)
- Creates a database exception with a
given severity, and with other information.
Sets the runtime status to
aMsgID
.
- Parameters:
aCause
- the exception that caused this, or null if noneaMsgID
- the message to reportaMsgInserts
- the message insertsaSeverity
- the severityaSQL
- the SQL we were running when the
problem occured, or null if noneaSQLInserts
- the inserts for the SQL we
were running, or null if none
createMissingColumnException
public static ConfigurationException createMissingColumnException(java.lang.String aClass,
java.lang.String aTable,
java.lang.String aDB,
java.lang.String aColumn,
java.lang.String aDescr)
- Creates an exception caused by a table that is missing a required column.
- Parameters:
aClass
- the name of the class that is stored in the tableaTable
- the name of the tableaDB
- the name of the database that the table is stored in (its
Data-Admin-DB-Name
)aColumn
- the missing columnaDescr
- what we were doing when the problem occured
- Returns:
- the exception
Copyright © 2012 Pegasystems Inc. All Rights Reserved.