T
- the type of the problem.public interface Handler<T>
Modifier and Type | Field | Description |
---|---|---|
static Handler<java.lang.Object> |
DO_NOTHING |
A handler that does nothing given any input.
|
static Handler<java.lang.Throwable> |
PROPAGATE |
A handler that re-raises an error, wrapping it in a runtime exception if
necessary.
|
Modifier and Type | Method | Description |
---|---|---|
void |
handle(T x) |
Called to handle x.
|
static final Handler<java.lang.Object> DO_NOTHING
static final Handler<java.lang.Throwable> PROPAGATE
void handle(T x)
x
- the problem.Copyright © 2019 OWASP. All rights reserved.