public void setError(ErrorDetail error) {
        this.error = error;
    }
<p>
An error message associated with the document.
</p>

@param error
       An error message associated with the document.
aws-java-sdk-qbusiness/src/main/java/com/amazonaws/services/qbusiness/model/DocumentDetails.java