public class CustomTestFailureEnricher extends Object implements FailureEnricher
FailureEnricher.Context
Constructor and Description |
---|
CustomTestFailureEnricher() |
Modifier and Type | Method and Description |
---|---|
Set<String> |
getOutputKeys()
Method to list all the label Keys the enricher can associate with Values in case of a failure
processFailure . |
CompletableFuture<Map<String,String>> |
processFailure(Throwable cause,
FailureEnricher.Context context)
Method to handle a failure as part of the enricher and optionally return a map of KV pairs
(labels).
|
public Set<String> getOutputKeys()
FailureEnricher
processFailure
. Note that Keys must unique and properly defined per enricher
implementation otherwise will be ignored.getOutputKeys
in interface FailureEnricher
public CompletableFuture<Map<String,String>> processFailure(Throwable cause, FailureEnricher.Context context)
FailureEnricher
getOutputKeys
method otherwise will be ignored.processFailure
in interface FailureEnricher
cause
- the exception that caused this failurecontext
- the context that includes extra information (e.g., if it was a global failure)Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.