Skip to content

Commit 239b686

Browse files
committed
Removed Error in catch
1 parent 4f7968c commit 239b686

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

core/src/main/java/com/javadiscord/jdi/core/Discord.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ private void loadComponents() {
242242
} else {
243243
throw new RuntimeException("Unable to create ComponentLoader instance");
244244
}
245-
} catch (Exception | Error e) {
245+
} catch (Exception e) {
246246
LOGGER.warn("Component loading failed", e);
247247
}
248248
}
@@ -261,7 +261,7 @@ private void loadAnnotations() {
261261
}
262262
}
263263
}
264-
} catch (Exception | Error e) {
264+
} catch (Exception e) {
265265
LOGGER.warn("Event listener loading failed", e);
266266
}
267267
}
@@ -285,7 +285,7 @@ private void loadSlashCommands() {
285285
}
286286
}
287287
}
288-
} catch (Exception | Error e) {
288+
} catch (Exception e) {
289289
LOGGER.error("Failed to load SlashCommands", e);
290290
}
291291
}

0 commit comments

Comments
 (0)