org.jcamp.parser.ErrorHandlerAdapter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jcamp-dx Show documentation
Show all versions of jcamp-dx Show documentation
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 {
}
}