code: synchronized void trimList(int toLimit){
  		int listSize = errorList.size();
  		List<CaughtError> newList = new CopyOnWriteArrayList<CaughtError>();
  		for (int i=listSize - toLimit; i<listSize; i++){
  			newList.add(errorList.get(i));
  		}
  		errorList = newList;
  
  	}
docs: /*unit test