com.pega.pegarules.pub.database
Class MultipleCircumstancePropertiesException

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

public class MultipleCircumstancePropertiesException
extends DatabaseException

This exception is thrown when PegaRULES encounters more than one version of a Rule with the same name, but different Circumstance (pyCircumstanceProp) or Date Circumstance (pyCircumstanceDateProp) Properties.

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
MultipleCircumstancePropertiesException(java.lang.String aProperty1, java.lang.String aProperty2)
          Constructs an instance of the exception.
 
Method Summary
static MultipleCircumstancePropertiesException createMultipleCircumstanceDatePropertyException(java.lang.String aInstanceClass, java.lang.String aInstanceName, java.lang.String aProperty1, java.lang.String aProperty2)
          Create an exception indicating that we found more than one Circumstance Date Property during Rule Resolution.
static MultipleCircumstancePropertiesException createMultipleCircumstancePropertyException(java.lang.String aInstanceClass, java.lang.String aInstanceName, java.lang.String aProperty1, java.lang.String aProperty2)
          Create an exception indicating that we found more than one Circumstance Property during Rule Resolution.
 java.lang.String getFirstProperty()
          Gets the first property.
 java.lang.String getSecondProperty()
          Gets the second property.
 
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

MultipleCircumstancePropertiesException

public MultipleCircumstancePropertiesException(java.lang.String aProperty1,
                                               java.lang.String aProperty2)
Constructs an instance of the exception.

Parameters:
aProperty1 - the first circumstance property found
aProperty2 - the second circumstance property found
Method Detail

createMultipleCircumstancePropertyException

public static MultipleCircumstancePropertiesException createMultipleCircumstancePropertyException(java.lang.String aInstanceClass,
                                                                                                  java.lang.String aInstanceName,
                                                                                                  java.lang.String aProperty1,
                                                                                                  java.lang.String aProperty2)
Create an exception indicating that we found more than one Circumstance Property during Rule Resolution.

Parameters:
aInstanceClass - class of the requested instance
aInstanceName - the requested instance name
aProperty1 - the first property
aProperty2 - the second property
Returns:
exception

createMultipleCircumstanceDatePropertyException

public static MultipleCircumstancePropertiesException createMultipleCircumstanceDatePropertyException(java.lang.String aInstanceClass,
                                                                                                      java.lang.String aInstanceName,
                                                                                                      java.lang.String aProperty1,
                                                                                                      java.lang.String aProperty2)
Create an exception indicating that we found more than one Circumstance Date Property during Rule Resolution.

Parameters:
aInstanceClass - class of the requested instance
aInstanceName - the requested instance name
aProperty1 - the first property
aProperty2 - the second property
Returns:
exception

getFirstProperty

public java.lang.String getFirstProperty()
Gets the first property.

Returns:
the first property

getSecondProperty

public java.lang.String getSecondProperty()
Gets the second property.

Returns:
the second property


Copyright © 2012 Pegasystems Inc. All Rights Reserved.