Catch Throwables instead of Exceptions while (un)marshalling flags
This commit is contained in:
parent
3879772103
commit
e98196af40
|
@ -48,7 +48,7 @@ public final class FlagUtil {
|
|||
for (Entry<Flag<?>, Object> entry : values.entrySet()) {
|
||||
try {
|
||||
rawValues.put(entry.getKey().getName(), marshal(entry.getKey(), entry.getValue()));
|
||||
} catch (Exception e) {
|
||||
} catch (Throwable e) {
|
||||
log.log(Level.WARNING, "Failed to marshal flag value for " + entry.getKey() + "; value is " + entry.getValue(), e);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -144,7 +144,7 @@ public class SimpleFlagRegistry implements FlagRegistry {
|
|||
} else {
|
||||
log.warning("Failed to parse flag '" + flag.getName() + "' with value '" + entry.getValue() + "'");
|
||||
}
|
||||
} catch (Exception e) {
|
||||
} catch (Throwable e) {
|
||||
log.log(Level.WARNING, "Failed to unmarshal flag value for " + flag, e);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue