class ErrorManageUtil {

	public static synchronized void  uploadError(String account, String region, String type, String exception) {
		try{
			List<ErrorVH> errorList = errorMap.get(account);
			if(errorList==null){
				errorList =  new ArrayList<>();
				errorMap.put(account, errorList);
			}
			ErrorVH error = new ErrorVH();
			error.setException(exception);
			error.setRegion(region);
			error.setType(type);
			errorList.add(error);
		}catch(Exception e){
		    log.error("Error in uploadError",e);
		}
	}

	private  ErrorManageUtil();

}