com.ibm.commerce.rules.exception
Class RulesSystemRuntimeException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--java.lang.RuntimeException
                    |
                    +--com.ibm.commerce.rules.exception.RulesSystemRuntimeException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
InvalidRuleServiceKeyException, RuleServerConfigurationNotFoundException, RuleServiceConfigurationNotFoundException, RulesSystemDataModelException

public abstract class RulesSystemRuntimeException
extends java.lang.RuntimeException

A base exception class for runtime (unchecked) exceptions thrown within the rules system. Clients should extend this exception class only for exceptions that represent problems beyond the normal control of the developer. As an example, if the database suddenly stops working or a network connection cannot be opened, the result should be an unchecked exception.

See Also:
Serialized Form

Field Summary
static java.lang.String COPYRIGHT
           
 
Constructor Summary
RulesSystemRuntimeException()
           
 
Method Summary
protected abstract  com.ibm.commerce.services.logging.Message getExceptionMessage()
          Subclasses must return an exception message to be formatted when a client calls getMessage().
 java.lang.String getLocalizedMessage()
          Formats the exception message with the message parameters, as defined by the subclass.
 java.lang.String getMessage()
           
protected  java.lang.Object[] getMessageParameters()
          Subclasses should override this method to return the proper message parameters, unless the exception message takes no parameters.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, printStackTrace, printStackTrace, printStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT
Constructor Detail

RulesSystemRuntimeException

public RulesSystemRuntimeException()
Method Detail

getExceptionMessage

protected abstract com.ibm.commerce.services.logging.Message getExceptionMessage()
Subclasses must return an exception message to be formatted when a client calls getMessage().

getLocalizedMessage

public java.lang.String getLocalizedMessage()
Formats the exception message with the message parameters, as defined by the subclass.
Overrides:
getLocalizedMessage in class java.lang.Throwable

getMessage

public java.lang.String getMessage()
Overrides:
getMessage in class java.lang.Throwable

getMessageParameters

protected java.lang.Object[] getMessageParameters()
Subclasses should override this method to return the proper message parameters, unless the exception message takes no parameters. In that case, this implementation is sufficient.