public static Exception toException()

in bulkimport/src/main/java/com/microsoft/azure/documentdb/bulkimport/ExceptionUtils.java [73:79]


    public static Exception toException(Throwable t) {
        if (t instanceof Exception) {
            return (Exception) t;
        } else {
            return new RuntimeException(t);
        }
    }