public void setError(String error) {
        this.error = error;
    }
<p>
The error message from the cluster if the SQL statement encountered an error while running.
</p>

@param error
       The error message from the cluster if the SQL statement encountered an error while running.
aws-java-sdk-redshiftdataapi/src/main/java/com/amazonaws/services/redshiftdataapi/model/SubStatementData.java