public boolean skipCurrentRecord(T element) {
        return ignoreErrors && errorOccurred;
    }
Serialize the data and handle the failure.

<p>Note: Returns null if the message could not be properly serialized.
inlong-sort/sort-formats/format-rowdata/format-rowdata-base/src/main/java/org/apache/inlong/sort/formats/base/DefaultSerializationSchema.java