org.webbitserver.handler.exceptions.SilentExceptionHandler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of webbit Show documentation
Show all versions of webbit Show documentation
A Java event based WebSocket and HTTP server
package org.webbitserver.handler.exceptions;
/**
* Exception handler that does nothing. Exceptions are silently discarded.
*
* @see org.webbitserver.WebServer#connectionExceptionHandler(java.lang.Thread.UncaughtExceptionHandler)
* @see org.webbitserver.WebServer#uncaughtExceptionHandler(java.lang.Thread.UncaughtExceptionHandler)
*/
public class SilentExceptionHandler implements Thread.UncaughtExceptionHandler {
@Override
public void uncaughtException(Thread t, Throwable e) {
// Do nothing.
}
}