org.webbitserver.handler.exceptions.SilentExceptionHandler Maven / Gradle / Ivy
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.
}
}