public static final class Catcher.Builder extends Object implements com.amazonaws.services.stepfunctions.builder.internal.Buildable<Catcher>
Catcher
.com.amazonaws.services.stepfunctions.builder.internal.Buildable.Utils
Modifier and Type | Method and Description |
---|---|
Catcher |
build() |
Catcher.Builder |
catchAll()
Makes this catcher handle all errors.
|
Catcher.Builder |
errorEquals(String... errorEquals)
Adds to the error codes that this catcher handles.
|
Catcher.Builder |
resultPath(String resultPath) |
Catcher.Builder |
transition(NextStateTransition.Builder transition)
Sets the transition that will occur if this catcher is evaluated.
|
public Catcher.Builder errorEquals(String... errorEquals)
nextStateName(String)
.errorEquals
- New error codes to add to this catchers handled errors.public Catcher.Builder catchAll()
errorEquals
.public Catcher.Builder resultPath(String resultPath)
resultPath
- JSON Path expression that can be used to combine the error output with the input to the state. If
not
specified the result will solely consist of the error output. See https://states-language.net/spec.html#filters
for more information.public Catcher.Builder transition(NextStateTransition.Builder transition)
transition
- New transition.public Catcher build()
build
in interface com.amazonaws.services.stepfunctions.builder.internal.Buildable<Catcher>
Catcher
object.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.