gw.lang.function.Procedure0 Maven / Gradle / Ivy
/*
* Copyright 2014 Guidewire Software, Inc.
*/
package gw.lang.function;
public abstract class Procedure0 extends AbstractBlock implements IProcedure0 {
public Object invokeWithArgs(Object[] args) {
if(args.length != 0) {
throw new IllegalArgumentException("You must pass 0 args to this block, but you passed" + args.length);
} else {
invoke();
return null;
}
}
}