Class ExceptionUtil

    • Constructor Detail

      • ExceptionUtil

        public ExceptionUtil()
        Deprecated.
    • Method Detail

      • initCause

        public static void initCause​(Throwable throwable,
                                     Throwable cause)
        Deprecated.
        If we're running on JDK 1.4 or later, initialize the cause for the given throwable.
        Parameters:
        throwable - The throwable.
        cause - The cause of the throwable.
      • isSocketTimeoutException

        public static boolean isSocketTimeoutException​(InterruptedIOException e)
        Deprecated.
        If SocketTimeoutExceptionClass is defined, returns true only if the exception is an instance of SocketTimeoutExceptionClass. If SocketTimeoutExceptionClass is undefined, always returns true.
        Parameters:
        e - an instance of InterruptedIOException class.
        Returns:
        true if the exception signals socket timeout, false otherwise.