From 08260a632b4325b425aad2f85f21253541f8174a Mon Sep 17 00:00:00 2001 From: "Erik C. Thauvin" Date: Mon, 30 Mar 2020 15:42:34 -0700 Subject: [PATCH] Fixed generic exception catching. --- .../thauvin/erik/mobibot/commands/tell/TellMessagesMgr.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/main/java/net/thauvin/erik/mobibot/commands/tell/TellMessagesMgr.java b/src/main/java/net/thauvin/erik/mobibot/commands/tell/TellMessagesMgr.java index c03af95..fd98c72 100644 --- a/src/main/java/net/thauvin/erik/mobibot/commands/tell/TellMessagesMgr.java +++ b/src/main/java/net/thauvin/erik/mobibot/commands/tell/TellMessagesMgr.java @@ -100,9 +100,7 @@ final class TellMessagesMgr { } } catch (FileNotFoundException ignore) { // Do nothing - } catch (IOException e) { - logger.error("An IO error occurred loading the messages queue.", e); - } catch (Exception e) { + } catch (IOException | ClassNotFoundException e) { logger.error("An error occurred loading the messages queue.", e); }