Now throws an IllegalFlagOverrideException (subclass of IllegalArgumentException).
I also made IllagalFlagValueException a subclasss of IllegalArgumentException.