add ANOTHER missing URISyntaxException catch (they're hiding from me ig)

This commit is contained in:
Jack
2024-07-23 23:38:53 -04:00
parent 5ef5db1cd5
commit 23b64653a8

View File

@@ -7,6 +7,7 @@ import org.json.simple.parser.ParseException;
import javax.naming.ConfigurationException; import javax.naming.ConfigurationException;
import java.io.IOException; import java.io.IOException;
import java.net.URISyntaxException;
import java.time.LocalTime; import java.time.LocalTime;
import java.time.ZoneId; import java.time.ZoneId;
import java.time.format.DateTimeFormatter; import java.time.format.DateTimeFormatter;
@@ -342,7 +343,7 @@ public class ConfigManager {
} catch (NullPointerException e) { } catch (NullPointerException e) {
throw new ConfigurationException("The APIKey cannot be blank"); throw new ConfigurationException("The APIKey cannot be blank");
} }
catch (IOException | ParseException e) { catch (IOException | ParseException | URISyntaxException e) {
rtw.getLogger().severe(e.getMessage()); rtw.getLogger().severe(e.getMessage());
throw new ConfigurationException("There was an error when validating this APIKey (this does not mean that the API key is invalid)"); throw new ConfigurationException("There was an error when validating this APIKey (this does not mean that the API key is invalid)");
} }