PDFGRuntimeException.java 1.35 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 PDFGRuntimeException
extends RuntimeException
implements Serializable {
    private static final long serialVersionUID = 1;
    private PDFGBaseException fallbackConverterException;
    private PDFGError error;
    private String m_causeStackTrace;

    public PDFGRuntimeException(PDFGError error, ExceptionStackTrace arg1) {
        super(error != null ? error.getMessage() : null);
        this.error = error;
        this.m_causeStackTrace = arg1.getStackTrace();
    }

    public PDFGRuntimeException(PDFGError error, Throwable cause) {
        super(error != null ? error.getMessage() : null, cause);
        this.error = error;
    }

    public PDFGRuntimeException(PDFGError error) {
        super(error != null ? error.getMessage() : null);
        this.error = error;
    }

    public void setFallbackConversionException(PDFGBaseException fallbackConverterException) {
        this.fallbackConverterException = fallbackConverterException;
        this.error.setFallbackConverterException(fallbackConverterException);
    }

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