Fail fast on fuckup.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5521 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2008-11-07 19:18:02 +00:00
parent 4ab8689ea9
commit deb8d90e07
@@ -57,6 +57,9 @@ public abstract class PersistingUnit extends Invoker.Unit
Object... args)
{
super(name);
if (args != null && args.length % 2 == 1) {
throw new IllegalArgumentException("Missing key or value in key/value pair arguments.");
}
_listener = listener;
_args = args;
}