public boolean failed() {
        return error() != null;
    }
@return true, if the last operation encountered an error; false otherwise
connect/runtime/src/main/java/org/apache/kafka/connect/runtime/errors/ProcessingContext.java