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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user