XPM error generation
The xpmerror command generates an error condition in the XPM. Specify the severity when an XPM error is generated.
Error conditions are:
action
Error is handled by the XLT statement error control value.
curdetail
Error out only the current translation routing detail but continue the remaining ones.
alldetail
Error out all of the message’s translation routing details.
The last argument is a textual description of the error. If the original message that is passed to XPM is transitioned into the error database, then this text message is attached to the message. This can help determine why the translation failed.
To prevent further Tcl processing, xpmerror also generates a Tcl error event.
Use the catch command to prevent the Tcl event from stopping.
The XPM error cannot be stopped.
For example:
Input: xpmerror $xlateId action "action error\ message"
Output: Error: action error message
Input: xpmerror $xlateId curdetail "curdetail\ error message"
Output: Error: curdetail error message
Input: xpmerror $xlateId alldetail "alldetail\ error message"
Output: Error: alldetail error message