public DescribedWorkflow withOnExceptionSteps(WorkflowStep... onExceptionSteps) {
        if (this.onExceptionSteps == null) {
            setOnExceptionSteps(new java.util.ArrayList<WorkflowStep>(onExceptionSteps.length));
        }
        for (WorkflowStep ele : onExceptionSteps) {
            this.onExceptionSteps.add(ele);
        }
        return this;
    }
<p>
Specifies the steps (actions) to take if errors are encountered during execution of the workflow.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setOnExceptionSteps(java.util.Collection)} or {@link #withOnExceptionSteps(java.util.Collection)} if you
want to override the existing values.
</p>

@param onExceptionSteps
       Specifies the steps (actions) to take if errors are encountered during execution of the workflow.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-transfer/src/main/java/com/amazonaws/services/transfer/model/DescribedWorkflow.java