class PartitionUtils {

  public static boolean isInvalidUserInputException(Exception e) {
    // exceptions caused by invalid requests, in which case we know all partitions creation failed
    return e instanceof EntityNotFoundException || e instanceof InvalidInputException;
  }

}