com.ibm.commerce.rules.exception
Class PersonalizationRuleServerException
com.ibm.commerce.exception.ECException
|
+--com.ibm.commerce.exception.ECSystemException
|
+--com.ibm.commerce.rules.exception.PersonalizationRuleServerException
- All Implemented Interfaces:
- java.io.Serializable
- public class PersonalizationRuleServerException
- extends ECSystemException
Indicates a general problem occurred within the personalization
rule server. This exception and its subclasses can be thrown
to the WCS command framework for handling, since it is an
ECSystemException
.
- See Also:
- Serialized Form
Fields inherited from class com.ibm.commerce.exception.ECException |
APPLICATION_ERROR, ECMESSAGE, ECMESSAGEKEY, errorProperties, EXCEP_DATA, EXCEP_TYPE, EXCEPTION, GENERIC_APPLICATION_ERROR_TASK, GENERIC_SYSTEM_ERROR_TASK, MSG_PARAM, SYSTEM_ERROR |
Constructor Summary |
PersonalizationRuleServerException(java.lang.String className,
java.lang.String methodName,
java.lang.Throwable aSourceThrowable)
Creates an exception, indicating where it was thrown and what the
underlying cause was. |
Methods inherited from class com.ibm.commerce.exception.ECException |
getErrorMessageKey, getErrorProperties, getErrorTaskName, getMessageKey, getStackTrace, getThrowable, getUserMessage, logMessage, logMessage, logMessage, setErrorTaskName, setException, setOrginatingCommand, setThrowable |
PersonalizationRuleServerException
public PersonalizationRuleServerException(java.lang.String className,
java.lang.String methodName,
java.lang.Throwable aSourceThrowable)
- Creates an exception, indicating where it was thrown and what the
underlying cause was.
public class SomeClass {
...
public void myMethod() throws PersonalizationRuleServerException {
try {
// Some tricky rule server calls that might throw
// a remote exception...
}
catch (java.rmi.RemoteException wrapped) {
throw new PersonalizationRuleServerException(getClass().getName(), "myMethod", wrapped);
}
}
...
}
You may wish to define constants for various method names if you
find you are throwing this exception (or one of its subclasses) from
a number of places within a method.
- Parameters:
className
- The name of the class from which this exception was thrown.methodName
- The name of the method within which this exception was
thrown.aSourceThrowable
- The underlying throwable, providing detail
as to the exception.
getSourceThrowable
public java.lang.Throwable getSourceThrowable()