if (exceptionObject.getClass().equals(IOException.class)) {
return new WLMPortalException("IOEception."+exceptionObject.getMessage(),exceptionObject);
}
if (exceptionObject.getClass().equals(ApiException.class)) {
/* Soni_Begin_17/09/2012_issue_for_consistent_Error_Message */
ApiException ae=(ApiException) exceptionObject;
// Added the error code to the display of the message
return new WLMPortalException(ae.getMessage() + "[" + ae.getErrorCode() + "]");
/* Soni_End_17/09/2012_issue_for_consistent_Error_Message */
//return new WLMPortalException("ApiException."+exceptionObject.getMessage(),exceptionObject);
}
if (exceptionObject.getClass().equals(IllegalArgumentException.class)) {
return new WLMPortalException("IllegalArgumentException: "+exceptionObject.getMessage(),exceptionObject);