All Downloads are FREE. Search and download functionalities are using the official Maven repository.

software.amazon.awssdk.services.stepfunctions.builder.ErrorCodes Maven / Gradle / Ivy

Go to download

The AWS Java SDK for AWS Step Functions module holds the client classes that are used for communicating with AWS Step Functions.

There is a newer version: 2.0.0-preview-11
Show newest version
/*
 * Copyright 2010-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License").
 * You may not use this file except in compliance with the License.
 * A copy of the License is located at
 *
 *  http://aws.amazon.com/apache2.0
 *
 * or in the "license" file accompanying this file. This file is distributed
 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
 * express or implied. See the License for the specific language governing
 * permissions and limitations under the License.
 */

package software.amazon.awssdk.services.stepfunctions.builder;

/**
 * Predefined error codes thrown by a StateMachine. See Predefined
 * Error Codes. Useful for constructing {@link software.amazon.awssdk.services.stepfunctions.builder.states.Retrier}s or
 * {@link software.amazon.awssdk.services.stepfunctions.builder.states.Catcher}s.
 *
 * @see https://states-language.net/spec.html#appendix-a
 */
public final class ErrorCodes {

    /**
     * A wild-card which matches any Error Name.
     */
    public static final String ALL = "States.ALL";
    /**
     * A Task State either ran longer than the “TimeoutSeconds” value, or failed to heartbeat for a time longer than the
     * “HeartbeatSeconds” value.
     */
    public static final String TIMEOUT = "States.Timeout";
    /**
     * A Task State failed during the execution.
     */
    public static final String TASK_FAILED = "States.TaskFailed";
    /**
     * A Task State failed because it had insufficient privileges to execute the specified code.
     */
    public static final String PERMISSIONS = "States.Permissions";
    /**
     * A Task State’s “ResultPath” field cannot be applied to the input the state received.
     */
    public static final String RESULT_PATH_MATCH_FAILURE = "States.ResultPathMatchFailure";
    /**
     * A branch of a Parallel state failed.
     */
    public static final String BRANCH_FAILED = "States.BranchFailed";
    /**
     * A Choice state failed to find a match for the condition field extracted from its input.
     */
    public static final String NO_CHOICE_MATCHED = "States.NoChoiceMatched";

    private ErrorCodes() {
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy