From 6c8d1934e71c5868a820f33616e87cdf5c18bd6b Mon Sep 17 00:00:00 2001 From: Video Date: Thu, 29 Jul 2021 05:38:30 -0600 Subject: [PATCH] FS-313 --- src/main/java/me/totalfreedom/totalfreedommod/SavedFlags.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/me/totalfreedom/totalfreedommod/SavedFlags.java b/src/main/java/me/totalfreedom/totalfreedommod/SavedFlags.java index a86320fa..20bdb5ce 100644 --- a/src/main/java/me/totalfreedom/totalfreedommod/SavedFlags.java +++ b/src/main/java/me/totalfreedom/totalfreedommod/SavedFlags.java @@ -46,7 +46,7 @@ public class SavedFlags extends FreedomService return flags; } - public boolean getSavedFlag(String flag) throws Exception + public boolean getSavedFlag(String flag) throws IllegalStateException { Boolean flagValue = null; @@ -66,7 +66,7 @@ public class SavedFlags extends FreedomService } else { - throw new Exception(); + throw new IllegalStateException("Attempt to get non-existent flag " + flag); } }