This content has been marked as final. Show 4 replies
If it is OIM 11g,
Follow steps written in:
8.20 Defining Error Messages
After that use following constructor of EventFailedException to send your custom Error message... Give null values for other values...
EventFailedException(long processId, String errCode, String errMessage, String adlMessage, String eventName, Throwable cause)
Just one point of clarification on this.
When defining the Error Message in the Design Console, there are three pieces of information:
1 - Key (generated by OIM when creating the error msg definition)
2 - Code
3 - Description
In the constructor to the EventFailedValidationException, you specify entering the errorCode and errMsg. Which of these map to fields in the Error Message Definition? Does errorCode supposed to be set to the Key or Code field? Then does errMsg in the constructor have to match the Description field, or can it be anything that is dynamically generated?
I'm still not quite clear on how this works.
The constructor to the EventFailedException object passes in an errCode and errMessage. The errCode parameter MUST match the Code field from the Error Message Definition that was created in the Design Console, right?
Then the errMessage parameter in the EventFailedException constructor MUST match the Description field from the Error Message Definition that was created in the Design Console? Or can my errMessage parameter be any message text my event handler wants to use?