This commit is contained in:
Video 2021-07-29 05:38:30 -06:00
parent a1de7ac9ff
commit 6c8d1934e7

View File

@ -46,7 +46,7 @@ public class SavedFlags extends FreedomService
return flags; return flags;
} }
public boolean getSavedFlag(String flag) throws Exception public boolean getSavedFlag(String flag) throws IllegalStateException
{ {
Boolean flagValue = null; Boolean flagValue = null;
@ -66,7 +66,7 @@ public class SavedFlags extends FreedomService
} }
else else
{ {
throw new Exception(); throw new IllegalStateException("Attempt to get non-existent flag " + flag);
} }
} }