public short error() {
            return error;
        }
Return the error code of this assignment; 0 signals successful assignment ({@link ConnectProtocol.Assignment#NO_ERROR}).

@return the error code of the assignment
connect/runtime/src/main/java/org/apache/kafka/connect/runtime/distributed/ConnectProtocol.java