Class ExceptionHandling

java.lang.Object
org.mockserver.exception.ExceptionHandling

public class ExceptionHandling extends Object
  • Constructor Details

    • ExceptionHandling

      public ExceptionHandling()
  • Method Details

    • handleThrowable

      public static <T> T handleThrowable(CompletableFuture<T> future, long timeout, TimeUnit unit)
    • handleThrowable

      public static <T> T handleThrowable(Callable<T> callable)
    • swallowThrowable

      public static void swallowThrowable(ExceptionHandling.ThrowingRunnable runnable)
    • closeOnFlush

      public static void closeOnFlush(io.netty.channel.Channel ch)
      Closes the specified channel after all queued write requests are flushed.
    • connectionClosedException

      public static boolean connectionClosedException(Throwable throwable)
      returns true is the exception was caused by the connection being closed
    • sslHandshakeException

      public static boolean sslHandshakeException(Throwable throwable)
    • connectionException

      public static boolean connectionException(Throwable throwable)