public boolean isFailure() {
        return !isSuccess();
    }
Encapsulates an error code (via the Errors enum) and an optional message. Generally, the optional message is only
defined if it adds information over the default message associated with the error code.

This is an internal class (like every class in the requests package).
clients/src/main/java/org/apache/kafka/common/requests/ApiError.java