return null;
}
public static ErrorDetails getErrorDetails (ErrorDetailResource resource){
if (resource != null){
ErrorDetails errorDetails = new ErrorDetails();
errorDetails.setErrorID(String.valueOf(resource.getErrorId()));
errorDetails.setCreationTime(resource.getCreationTime().getTime());
errorDetails.setActualErrorMessage(resource.getActualErrorMsg());
errorDetails.setUserFriendlyMessage(resource.getUserFriendlyErrorMsg());
errorDetails.setErrorCategory(ErrorCategory.valueOf(resource.getErrorCategory()));
errorDetails.setTransientOrPersistent(resource.isTransientPersistent());
errorDetails.setCorrectiveAction(CorrectiveAction.valueOf(resource.getCorrectiveAction()));
errorDetails.setActionableGroup(ActionableGroup.valueOf(resource.getActionableGroup()));
return errorDetails;
}
return null;
}