Hmm don't throw the ArgumentError inside our own catch, even though
we should have re-thrown it. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5951 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -156,11 +156,9 @@ public class ObjectMarshaller
|
||||
public static function validateValue (value :Object) :void
|
||||
// throws ArgumentError
|
||||
{
|
||||
var s :String;
|
||||
try {
|
||||
var s :String = getValidationError(value);
|
||||
if (s != null) {
|
||||
throw new ArgumentError(s);
|
||||
}
|
||||
s = getValidationError(value);
|
||||
|
||||
} catch (e :Error) {
|
||||
switch (e.errorID) {
|
||||
@@ -170,6 +168,9 @@ public class ObjectMarshaller
|
||||
throw e; // re-throw
|
||||
}
|
||||
}
|
||||
if (s != null) {
|
||||
throw new ArgumentError(s);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user