Package io.quarkus.deployment.dev
Class ExceptionNotificationBuildItem
- java.lang.Object
-
- io.quarkus.builder.item.BuildItem
-
- io.quarkus.builder.item.MultiBuildItem
-
- io.quarkus.deployment.dev.ExceptionNotificationBuildItem
-
public final class ExceptionNotificationBuildItem extends MultiBuildItem
Allows for a handler to be registered when exceptions are logged. This is intended for use in dev/test mode to allow Quarkus to help the developer handle the issue.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) BiConsumer<Throwable,StackTraceElement>
exceptionHandler
-
Constructor Summary
Constructors Constructor Description ExceptionNotificationBuildItem(BiConsumer<Throwable,StackTraceElement> exceptionHandler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BiConsumer<Throwable,StackTraceElement>
getExceptionHandler()
-
-
-
Field Detail
-
exceptionHandler
final BiConsumer<Throwable,StackTraceElement> exceptionHandler
-
-
Constructor Detail
-
ExceptionNotificationBuildItem
public ExceptionNotificationBuildItem(BiConsumer<Throwable,StackTraceElement> exceptionHandler)
-
-
Method Detail
-
getExceptionHandler
public BiConsumer<Throwable,StackTraceElement> getExceptionHandler()
-
-