All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.webbitserver.handler.exceptions.SilentExceptionHandler Maven / Gradle / Ivy

There is a newer version: 0.4.15
Show newest version
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.
    }

}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy