public static boolean isJDODataStoreException(Exception e) {
    return (e instanceof JDODataStoreException);
  }
Check if this is a javax.jdo.JDODataStoreException
ql/src/java/org/apache/hadoop/hive/ql/metadata/CheckJDOException.java