ConversionException.java 1.53 KB
/*
 * Decompiled with CFR 0_118.
 */
package com.adobe.pdfg.exception;

import com.adobe.pdfg.exception.ExceptionStackTrace;
import com.adobe.pdfg.exception.PDFGBaseException;
import com.adobe.pdfg.exception.PDFGError;
import java.io.Serializable;

public class ConversionException
extends PDFGBaseException
implements Serializable {
    private static final long serialVersionUID = 6464316886653262387L;
    private final int errorCode;
    private String conversionLog;

    public ConversionException(int errorCode) {
        super(new PDFGError(errorCode));
        this.errorCode = errorCode;
    }

    public ConversionException(int errorCode, String param) {
        super(new PDFGError(errorCode, param));
        this.errorCode = errorCode;
    }

    public ConversionException(int errorCode, String[] param) {
        super(new PDFGError(errorCode, param));
        this.errorCode = errorCode;
    }

    public ConversionException(int errorCode, String param, Throwable cause) {
        super(new PDFGError(errorCode, param), new ExceptionStackTrace(cause));
        this.errorCode = errorCode;
    }

    public ConversionException(int errorCode, Throwable cause) {
        super(new PDFGError(errorCode, cause), new ExceptionStackTrace(cause));
        this.errorCode = errorCode;
    }

    public int getErrorCode() {
        return this.errorCode;
    }

    public String getConversionLog() {
        return this.conversionLog;
    }

    public void setConversionLog(String conversionLog) {
        this.conversionLog = conversionLog;
    }
}