- 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