public void error(Throwable error) {
        this.error = error;
    }
The error (if any) which was encountered while processing the current stage.

@param error the error
connect/runtime/src/main/java/org/apache/kafka/connect/runtime/errors/ProcessingContext.java