com.pega.pegarules.pub.database
Class BadClassDefinitionException

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.BadClassDefinitionException
All Implemented Interfaces:
java.io.Serializable

public class BadClassDefinitionException
extends DatabaseException

Indicates that a PegaRULES class does not exist, or if there is some other problem with its definition.

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.

Version:
$Revision: 31 $ $Date: 2009-06-24 09:38:04 -0400 (Wed, 24 Jun 2009) $
Author:
Jamie Gentry
See Also:
Serialized Form

Field Summary
static java.lang.String COPYRIGHT
           
static java.lang.String VERSION
           
 
Constructor Summary
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.
 
Method Summary
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.
 
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

BadClassDefinitionException

public 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. Sets the runtime status to aMsgID.

Parameters:
aCause - the exception that caused this, or null if none
aMsgID - the message to report
aMsgInserts - the message inserts
aSeverity - the severity
aSQL - the SQL we were running when the problem occured, or null if none
aSQLInserts - the inserts for the SQL we were running, or null if none

BadClassDefinitionException

public BadClassDefinitionException(java.lang.String aBadClassName,
                                   java.lang.String aDescr)
Creates an exception and sets the processing status to "fail."

Parameters:
aBadClassName - the name of the bad class
aDescr - the message

BadClassDefinitionException

public BadClassDefinitionException(java.lang.Throwable aCause,
                                   java.lang.String aBadClassName,
                                   java.lang.String aMsg)
Creates an exception that resulted from a previous exception.

Parameters:
aCause - the exception that caused this exception
aBadClassName -
aMsg - the message

BadClassDefinitionException

public BadClassDefinitionException(int aSeverity,
                                   java.lang.String aBadClassName)
Creates an exception with a severity.

Parameters:
aSeverity - the severity
aBadClassName - the bad class
Method Detail

createBadObjectClassException

public static BadClassDefinitionException createBadObjectClassException(java.lang.String aBadClassName,
                                                                        java.lang.String aAction)
Creates an error message indicating that we encountered a bad object class.

Parameters:
aBadClassName - the name of the bad object class
aAction - more specific information about what we were doing
Returns:
exception

createBadObjectClassException

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

Parameters:
aBadClassName - the name of the bad object class
aAction - more specific information about what we were doing
aThrowable -
Returns:
exception

getBadClassName

public java.lang.String getBadClassName()
Returns the name of the class that does not exist.

Returns:
the bad class name


Copyright © 2012 Pegasystems Inc. All Rights Reserved.