001// License: GPL. For details, see LICENSE file.
002package org.openstreetmap.josm.tools;
003
004import org.xml.sax.SAXException;
005
006/** Quit parsing, when a certain condition is met */
007class SAXReturnException extends SAXException {
008    private final String result;
009
010    SAXReturnException(String result) {
011        this.result = result;
012    }
013
014    public final String getResult() {
015        return result;
016    }
017}