Class 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 string
        args - format specifiers
        Returns:
        unchecked exception.