Monday, April 25, 2016

Exception Handling in Behavior Extension

Exception Handling in Behavior Extension


DWLStatus status = params.getExtensionSetStatus();


status = addError(theControl, TCRMErrorCode.UPDATE_RECORD_ERROR, ErrorReasonCode.Error_Reason_Code, e.getMessage());


params.setExtensionSetStatus(status);


by Ritwik Sen

1 comment:

  1. DWLStatus status = new DWLStatus();
    DWLError 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);

    ReplyDelete