PAssert.java

src/net/sourceforge/pain/util/PAssert.java · 256 B

From the archive pain_0_41.zip

Download the archive   « Back to the archive contents

package net.sourceforge.pain.util;

/**
 * PAiN  Date: 09.03.2003  Time: 22:13:08
 */
public final class PAssert {
	public static void that(final boolean condition) {
		if (!condition) {
			throw new Error("db constraint violation!");
		}
	}
}

Site Stats

Snippets: 1791
Codebases: 571