In WebSphere Commerce, generic application and system errorscan occur. XML messages are generated if a command, invoked by aninbound message through WebSphere MQ, encounters a generic applicationor a generic system exception.
A generic application error message is sent to the outbound queueif the error is related to the user. When a user enters an invalidparameter in an XML message, an ECApplicationException is thrown.The message is then sent to the outbound queue and the exception isdocumented in a log file.
Note: When an exception of this type is thrown, the Web controllerwill not retry the command, even if it is specified as a command thatcould be retried.
A generic system error message is sent to the outbound queue ifa runtime exception or a WebSphere Commerce configuration error isdetected, such as null-pointer exceptions and transaction rollbackexceptions.
The contents of generic XML messages vary depending on the contentsof inbound XML messages however, the format is similar to the following:
<?xml version="1.0" encoding="UTF-8"?><WCS_Error type="GenericApplicationError"> (or <WCS_Error type="GenericSystemError">)<RequestAttributes> ...(Error parameters and data of inbound XML message)<excMsg>(Error message key, e.g. _ERR_REMOTE_EXCEPTION)</excMsg> ... </RequestAttributes> </WCS_Error>