Package org.mockserver.exception
Class ExceptionHandling
java.lang.Object
org.mockserver.exception.ExceptionHandling
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic interface -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcloseOnFlush(io.netty.channel.Channel ch) Closes the specified channel after all queued write requests are flushed.static booleanconnectionClosedException(Throwable throwable) returns true is the exception was caused by the connection being closedstatic booleanconnectionException(Throwable throwable) static <T> ThandleThrowable(Callable<T> callable) static <T> ThandleThrowable(CompletableFuture<T> future, long timeout, TimeUnit unit) static booleansslHandshakeException(Throwable throwable) static void
-
Constructor Details
-
ExceptionHandling
public ExceptionHandling()
-
-
Method Details
-
handleThrowable
-
handleThrowable
-
swallowThrowable
-
closeOnFlush
public static void closeOnFlush(io.netty.channel.Channel ch) Closes the specified channel after all queued write requests are flushed. -
connectionClosedException
returns true is the exception was caused by the connection being closed -
sslHandshakeException
-
connectionException
-