public interface ExecutionErrorFilter
Modifier and Type | Method and Description |
---|---|
boolean |
accept(ExecutionErrorContext errorContext) |
default <T> T |
extract(Throwable throwable,
Class<T> type) |
ExecutionError |
filter(ExecutionErrorContext errorContext)
Based on the cause filters the actual error and produces ExecutionError instance
if applicable for given filter.
|
Integer |
getPriority()
Returns expected priority in regards to other filters.
|
default boolean |
isCausedBy(Throwable throwable,
Class<?>... types) |
boolean accept(ExecutionErrorContext errorContext)
ExecutionError filter(ExecutionErrorContext errorContext)
cause
- the root cause of the errorInteger getPriority()
Copyright © 2001–2020 JBoss by Red Hat. All rights reserved.