Package org.apache.iceberg.spark
Class SparkExceptionUtil
- java.lang.Object
-
- org.apache.iceberg.spark.SparkExceptionUtil
-
public class SparkExceptionUtil extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.RuntimeException
toUncheckedException(java.lang.Throwable cause, java.lang.String message, java.lang.Object... args)
Converts checked exceptions to unchecked exceptions.
-
-
-
Method Detail
-
toUncheckedException
@FormatMethod public static java.lang.RuntimeException toUncheckedException(java.lang.Throwable cause, java.lang.String message, java.lang.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 stringargs
- format specifiers- Returns:
- unchecked exception.
-
-