public static final class Catcher.Builder extends Object implements Buildable<Catcher>, ResultPathBuilder<Catcher.Builder>
Catcher
.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)
OPTIONAL.
|
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)
ResultPathBuilder
resultPath
in interface ResultPathBuilder<Catcher.Builder>
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.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.