Verified Owner
Top Description Fields Constructors Methods
org.jabref.logic.util

public Class FallbackExceptionHandler

extends Object
implements UncaughtExceptionHandler
Class Inheritance
All Implemented Interfaces
java.lang.Thread.UncaughtExceptionHandler
Imports
java.util.function.BiConsumer, org.slf4j.Logger, .LoggerFactory

Catch and log any unhandled exceptions.

Field Summary

Modifier and TypeField and Description
private static final Logger
private final BiConsumer<Throwable, Thread>

Constructor Summary

AccessConstructor and Description
public
public

Method Summary

Modifier and TypeMethod and Description
public static void
public void
uncaughtException(Thread thread, Throwable exception)

Implements java.lang.Thread.UncaughtExceptionHandler.uncaughtException.

Method invoked when the given thread terminates due to the given uncaught exception.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

LOGGERback to summary
private static final Logger LOGGER
onExceptionback to summary
private final BiConsumer<Throwable, Thread> onException

Constructor Detail

FallbackExceptionHandlerback to summary
public FallbackExceptionHandler(BiConsumer<Throwable, Thread> onException)
FallbackExceptionHandlerback to summary
public FallbackExceptionHandler()

Method Detail

installExceptionHandlerback to summary
public static void installExceptionHandler(BiConsumer<Throwable, Thread> onException)
uncaughtExceptionback to summary
public void uncaughtException(Thread thread, Throwable exception)

Implements java.lang.Thread.UncaughtExceptionHandler.uncaughtException.

Doc from java.lang.Thread.UncaughtExceptionHandler.uncaughtException.

Method invoked when the given thread terminates due to the given uncaught exception.

Any exception thrown by this method will be ignored by the Java Virtual Machine.

Annotations
@Override