edu.cmu.sv.utils.Assert Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of yoda Show documentation
Show all versions of yoda Show documentation
A library that allows rapid prototyping of dialog systems (language understanding, discourse modelling, dialog management, language generation).
package edu.cmu.sv.utils;
/**
* Created by David Cohen on 12/12/14.
*/
public class Assert {
public static class AssertException extends Exception{}
public static void verify(boolean x) throws AssertException {
if (!x)
throw new AssertException();
}
}