public ExpiredTokenException withError(String error) {
        setError(error);
        return this;
    }
<p>
Single error code. For this exception the value will be <code>expired_token</code>.
</p>

@param error
       Single error code. For this exception the value will be <code>expired_token</code>.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-ssooidc/src/main/java/com/amazonaws/services/ssooidc/model/ExpiredTokenException.java