@InterfaceAudience.Private @InterfaceStability.Unstable public class ErrorHandler extends Object
ErrorHandler
to the Node representing the action. The error handler action will be added as the "error-transition" of
the original action in the generated Oozie workflow XML. Both the "ok-transition" and the "error-transition" of the
error handler action itself will lead to an autogenerated kill node.| Modifier and Type | Method and Description |
|---|---|
static ErrorHandler |
buildAsErrorHandler(Builder<? extends Node> builder)
Creates a new
ErrorHandler. |
Node |
getHandlerNode()
Returns the error handler action node.
|
String |
getName()
Returns the name of the error handler action.
|
public static ErrorHandler buildAsErrorHandler(Builder<? extends Node> builder)
ErrorHandler. The provided builder is used to build the underlying error handler action.
The builder should be in a state where no parents are specified, otherwise an exception is thrown.builder - The builder that is used to build the underlying error handler node.ErrorHandler.IllegalStateException - if the provided builder has parents registered.public String getName()
public Node getHandlerNode()
Copyright © 2021 Apache Software Foundation. All rights reserved.