Exception Handling in Behavior Extension
DWLStatus status = params.getExtensionSetStatus();
status = addError(theControl, TCRMErrorCode.UPDATE_RECORD_ERROR, ErrorReasonCode.Error_Reason_Code, e.getMessage());
DWLStatus status = params.getExtensionSetStatus();
status = addError(theControl, TCRMErrorCode.UPDATE_RECORD_ERROR, ErrorReasonCode.Error_Reason_Code, e.getMessage());
params.setExtensionSetStatus(status);
by Ritwik Sen
by Ritwik Sen
DWLStatus status = new DWLStatus();
ReplyDeleteDWLError error = new DWLError();
error.setErrorMessage("Error occured in xyz BehaviorExt");
error.setThrowable(new TCRMException(e.getLocalizedMessage()));
status.addError(error);
status.setStatus(DWLStatus.FATAL);
params.setExtensionSetStatus(status);