FormattingException.java 1.15 KB
/*
 * Decompiled with CFR 0_118.
 */
package com.adobe.fontengine.inlineformatting;

import com.adobe.fontengine.FontEngineException;

public class FormattingException
extends FontEngineException {
    static final long serialVersionUID = 1;
    protected final int start;
    protected final int limit;

    public FormattingException(int start, int limit) {
        this.start = start;
        this.limit = limit;
    }

    public FormattingException(String message, int start, int limit) {
        super(message);
        this.start = start;
        this.limit = limit;
    }

    public FormattingException(String message, Throwable cause, int start, int limit) {
        super(message, cause);
        this.start = start;
        this.limit = limit;
    }

    public FormattingException(Throwable cause, int start, int limit) {
        super(cause);
        this.start = start;
        this.limit = limit;
    }

    public int getStart() {
        return this.start;
    }

    public int getLimit() {
        return this.limit;
    }

    public String toString() {
        return super.toString() + " (start=" + this.start + ", limit=" + this.limit + ")";
    }
}