org.frameworkset.tran.kafka.output.KafkaSendException Maven / Gradle / Ivy
package org.frameworkset.tran.kafka.output;
/**
* Copyright 2020 bboss
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import org.frameworkset.tran.DataImportException;
/**
*
Description:
*
* Copyright (c) 2020
* @Date 2021/2/26 16:23
* @author biaoping.yin
* @version 1.0
*/
public class KafkaSendException extends DataImportException {
private Object recordMetadata;
public KafkaSendException(Object recordMetadata, Exception exception) {
super(exception);
this.recordMetadata = recordMetadata;
}
public KafkaSendException(String message) {
super(message);
}
public KafkaSendException(String message, Throwable cause) {
super(message, cause);
}
public KafkaSendException(Throwable cause) {
super(cause);
}
public KafkaSendException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
super(message, cause, enableSuppression, writableStackTrace);
}
public Object getRecordMetadata() {
return recordMetadata;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy