| Package | Description |
|---|---|
| org.apache.nifi.processor.util.pattern |
| Modifier and Type | Field and Description |
|---|---|
private BiFunction<C,ErrorTypes,ErrorTypes.Result> |
ExceptionHandler.adjustError
Adjust error type based on the context.
|
private Function<Exception,ErrorTypes> |
ExceptionHandler.mapException
Simply categorise an Exception.
|
| Modifier and Type | Method and Description |
|---|---|
static ErrorTypes |
ErrorTypes.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ErrorTypes[] |
ErrorTypes.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
static <FCT extends RollbackOnFailure> |
RollbackOnFailure.createAdjustError(ComponentLog logger)
Create a function to use with
ExceptionHandler that adjust error type based on functional context. |
| Modifier and Type | Method and Description |
|---|---|
void |
ExceptionHandler.adjustError(BiFunction<C,ErrorTypes,ErrorTypes.Result> adjustError)
Specify a function that adjust ErrorType based on a function context.
|
void |
ExceptionHandler.mapException(Function<Exception,ErrorTypes> mapException)
Specify a function that maps an Exception to certain ErrorType.
|
Copyright © 2019 Apache NiFi Project. All rights reserved.