com.ibm.commerce.foundation.common.exception

Class ProgrammingErrorException

  • All Implemented Interfaces:
    java.io.Serializable


    public class ProgrammingErrorException
    extends com.ibm.commerce.foundation.internal.common.exception.FoundationSystemException
    Use this exception in scenarios that should never be reached under normal operating conditions. For example, rather than leave a catch block empty, rethrow the caught exception as an ProgrammingErrorException. This way, if ever a scenario is encountered that causes this unanticipated flow, the full trace will be dumped to the logs. This exception has only one constructor, because it should only be used to wrap an existing exception. For other instances of violated assumptions, use the Java assertion facility.
    See Also:
    Serialized Form
    • Field Detail

      • COPYRIGHT

        public static final java.lang.String COPYRIGHT
        IBM Copyright
        See Also:
        Constant Field Values
    • Constructor Detail

      • ProgrammingErrorException

        public ProgrammingErrorException(java.lang.String messageKey,
                                         java.lang.Object[] params,
                                         java.lang.String className,
                                         java.lang.String methodName)
        Parameters:
        messageKey -
        params -
        className -
        methodName -
      • ProgrammingErrorException

        public ProgrammingErrorException(java.lang.String messageKey,
                                         java.lang.Object[] params,
                                         java.lang.String className,
                                         java.lang.String methodName,
                                         java.lang.Throwable cause)
        Parameters:
        messageKey -
        params -
        className -
        methodName -
        cause -