Update CheckSharedHashMap.java

add comment when throw exception