All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.sun.tools.xjc.api.impl.s2j.DowngradingErrorHandler Maven / Gradle / Ivy

There is a newer version: 4.0.5
Show newest version
package com.sun.tools.xjc.api.impl.s2j;

import org.xml.sax.ErrorHandler;
import org.xml.sax.SAXException;
import org.xml.sax.SAXParseException;

/**
 * {@link ErrorHandler} that reports all errors as warnings.
 *
 * @author Kohsuke Kawaguchi
 */
final class DowngradingErrorHandler implements ErrorHandler {
    private final ErrorHandler core;

    public DowngradingErrorHandler(ErrorHandler core) {
        this.core = core;
    }

    public void warning(SAXParseException exception) throws SAXException {
        core.warning(exception);
    }

    public void error(SAXParseException exception) throws SAXException {
        core.warning(exception);
    }

    public void fatalError(SAXParseException exception) throws SAXException {
        core.warning(exception);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy