Package org.apache.iceberg.spark
Class SparkExceptionUtil
java.lang.Object
org.apache.iceberg.spark.SparkExceptionUtil
-
Method Summary
Modifier and TypeMethodDescriptionstatic RuntimeException
toUncheckedException
(Throwable cause, String message, Object... args) Converts checked exceptions to unchecked exceptions.
-
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 stringargs
- format specifiers- Returns:
- unchecked exception.
-