public static ExceptionHandler handleException(Exception e) {
    requireNonNull(e, "Exception e is null");
    return new ExceptionHandler(e);
  }
Provides a simplified way of handling complex exceptions instead of catching the targeted exceptions
differently for some transformations of exceptions.
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/ExceptionHandler.java