| Package | Description |
|---|---|
| net.openhft.chronicle.core | |
| net.openhft.chronicle.core.onoes |
| Modifier and Type | Method and Description |
|---|---|
static @NotNull ExceptionHandler |
Jvm.debug()
Returns an ExceptionHandler for debug messages, this prints as System.out or DEBUG level logging.
|
static @NotNull ExceptionHandler |
Jvm.error()
Returns an ExceptionHandler for errors, this prints as System.err or ERROR level logging.
|
static @NotNull ExceptionHandler |
Jvm.perf()
Returns an ExceptionHandler for performance messages, this prints as System.out or INFO level logging.
|
static @NotNull ExceptionHandler |
Jvm.startup()
Returns an ExceptionHandler for startup messages, this prints as System.out or INFO level logging.
|
static @NotNull ExceptionHandler |
Jvm.warn()
Returns an ExceptionHandler for warnings, this prints as System.out or WARN level logging.
|
| Modifier and Type | Class and Description |
|---|---|
class |
ChainedExceptionHandler
Chains exception handlers.
|
class |
NullExceptionHandler
Null-Object implementation of
ExceptionHandler that ignores every event. |
class |
RecordingExceptionHandler
Records each exception by incrementing a count in a provided map keyed by
ExceptionKey. |
class |
Slf4jExceptionHandler
Exception handler that logs using the SLF4J API.
|
class |
ThreadLocalisedExceptionHandler
Provides a per-thread
ExceptionHandler. |
| Modifier and Type | Method and Description |
|---|---|
@NotNull ExceptionHandler[] |
ChainedExceptionHandler.chain()
Returns the handlers in evaluation order.
|
ExceptionHandler |
ThreadLocalisedExceptionHandler.defaultHandler()
Returns the current default handler.
|
default ExceptionHandler |
ExceptionHandler.defaultHandler()
Retrieves the default underlying exception handler.
|
static ExceptionHandler |
ExceptionHandler.ignoresEverything()
Creates an
ExceptionHandler that ignores all exceptions. |
ExceptionHandler |
ThreadLocalisedExceptionHandler.threadLocalHandler()
Returns the handler specific to the current thread or
null if none is set. |
static ExceptionHandler |
ThreadLocalisedExceptionHandler.unwrap(ExceptionHandler eh)
Unwraps the supplied handler if it is an instance of this class.
|
| Modifier and Type | Method and Description |
|---|---|
ThreadLocalisedExceptionHandler |
ThreadLocalisedExceptionHandler.defaultHandler(ExceptionHandler defaultHandler)
Sets the default handler to use when no thread-local handler is present.
|
ThreadLocalisedExceptionHandler |
ThreadLocalisedExceptionHandler.threadLocalHandler(ExceptionHandler handler)
Overrides the handler for the current thread.
|
static ExceptionHandler |
ThreadLocalisedExceptionHandler.unwrap(ExceptionHandler eh)
Unwraps the supplied handler if it is an instance of this class.
|
| Constructor and Description |
|---|
ChainedExceptionHandler(ExceptionHandler... chain)
Creates a new chain of handlers.
|
ThreadLocalisedExceptionHandler(ExceptionHandler handler)
Creates a new instance using the supplied handler as the default.
|
Copyright © 2026 Chronicle Software Ltd. All rights reserved.