public class BadClassDefinitionException extends DatabaseException
This exception is often thrown if you try to access an instance with an
invalid class (pxObjClass), or a Rule that is defined on an
invalid class (pyClassName).
When this exception is thrown, the Processing Status message is often
set to Database-BadClassDef-BadObjectClass.
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
COPYRIGHT |
static java.lang.String |
VERSION |
mLookUpRuleMessages| Constructor and Description |
|---|
BadClassDefinitionException(int aSeverity,
java.lang.String aBadClassName)
Creates an exception with a severity.
|
BadClassDefinitionException(java.lang.String aBadClassName,
java.lang.String aDescr)
Creates an exception and sets the processing status to
"fail."
|
BadClassDefinitionException(java.lang.Throwable aCause,
java.lang.String aBadClassName,
java.lang.String aMsg)
Creates an exception that resulted from a previous exception.
|
BadClassDefinitionException(java.lang.Throwable aCause,
java.lang.String aMsgID,
java.lang.String[] aMsgInserts,
int aSeverity,
java.lang.String aSQL,
java.lang.String[] aSQLInserts)
Creates a bad class definition exception with a
given severity, and with other information.
|
| Modifier and Type | Method and Description |
|---|---|
static BadClassDefinitionException |
createBadObjectClassException(java.lang.String aBadClassName,
java.lang.String aAction)
Creates an error message indicating that we encountered a bad
object class.
|
static BadClassDefinitionException |
createBadObjectClassException(java.lang.String aBadClassName,
java.lang.String aAction,
java.lang.Throwable aThrowable)
Creates an error message indicating that we encountered a bad
object class.
|
java.lang.String |
getBadClassName()
Returns the name of the class that does not exist.
|
getSQL, setSQL, setSQLInsertsisLookUpRuleMessages, setLookUpRuleMessages, toStringpublic static final java.lang.String COPYRIGHT
public static final java.lang.String VERSION
public BadClassDefinitionException(java.lang.Throwable aCause,
java.lang.String aMsgID,
java.lang.String[] aMsgInserts,
int aSeverity,
java.lang.String aSQL,
java.lang.String[] aSQLInserts)
aMsgID.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 nonepublic BadClassDefinitionException(java.lang.String aBadClassName,
java.lang.String aDescr)
aBadClassName - the name of the bad classaDescr - the messagepublic BadClassDefinitionException(java.lang.Throwable aCause,
java.lang.String aBadClassName,
java.lang.String aMsg)
aCause - the exception that caused this exceptionaBadClassName - aMsg - the messagepublic BadClassDefinitionException(int aSeverity,
java.lang.String aBadClassName)
aSeverity - the severityaBadClassName - the bad classpublic static BadClassDefinitionException createBadObjectClassException(java.lang.String aBadClassName, java.lang.String aAction)
aBadClassName - the name of the bad object classaAction - more specific information about what we were doingpublic static BadClassDefinitionException createBadObjectClassException(java.lang.String aBadClassName, java.lang.String aAction, java.lang.Throwable aThrowable)
aBadClassName - the name of the bad object classaAction - more specific information about what we were doingaThrowable - public java.lang.String getBadClassName()
Copyright © 2014 Pegasystems Inc. All Rights Reserved.