Class SparkExceptionUtil

java.lang.Object
org.apache.iceberg.spark.SparkExceptionUtil

public class SparkExceptionUtil extends Object
  • Method Details

    • toUncheckedException

      @FormatMethod public static RuntimeException toUncheckedException(Throwable cause, String message, Object... args)
      Converts checked exceptions to unchecked exceptions.
      Parameters:
      cause - a checked exception object which is to be converted to its unchecked equivalent.
      message - exception message as a format string
      args - format specifiers
      Returns:
      unchecked exception.