Preconditions.java
491 Bytes
package ipipan.clarin.tei.impl.utils;
import ipipan.clarin.tei.api.exceptions.TEIException;
import javax.xml.stream.events.XMLEvent;
/**
*
* @author mlenart
*/
public class Preconditions {
public static void require(String errMsg, boolean expr) throws TEIException {
if (!expr) {
throw new TEIException(errMsg);
}
}
public static void require(String string, XMLEvent event,
boolean paragraphStart) {
throw new UnsupportedOperationException("Not yet implemented");
}
}