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

org.jcamp.parser.ErrorHandlerAdapter Maven / Gradle / Ivy

Go to download

The JCAMP-DX project is the reference implemention of the IUPAC JCAMP-DX spectroscopy data standard.

The newest version!
package org.jcamp.parser;

/**
 * default implementation of IErrorHandler
 * @author Thomas Weber
 */
public class ErrorHandlerAdapter implements IErrorHandler {
    /**
     * ErrorHandlerAdapter constructor comment.
     */
    public ErrorHandlerAdapter() {
        super();
    }
    /**
     * @see com.creon.chem.jcamp.IErrorHandler
     */
    public void error(String msg) throws JCAMPException {
        throw new JCAMPException("ERROR! " + msg);
    }
    /**
     * @see com.creon.chem.jcamp.IErrorHandler
     */
    public void fatal(String msg) throws JCAMPException {
        throw new JCAMPException("FATAL ERROR! " + msg);
    }
    /**
     * @see com.creon.chem.jcamp.IErrorHandler
     */
    public void warn(String msg) throws JCAMPException {
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy