Browse Source

Error handling for parsing of enum

combat-2
MagicBot 9 months ago
parent
commit
6259cd7803
  1. 8
      src/engine/gameManager/DbManager.java

8
src/engine/gameManager/DbManager.java

@ -288,8 +288,12 @@ public enum DbManager { @@ -288,8 +288,12 @@ public enum DbManager {
// Parse the element into an enum; add to the output set
E enumConstant = java.lang.Enum.valueOf(enumClass, element);
enumSet.add(enumConstant);
try {
E enumConstant = java.lang.Enum.valueOf(enumClass, element);
enumSet.add(enumConstant);
} catch (Exception e) {
Logger.error(mysqlSet);
}
}
// Return the output set

Loading…
Cancel
Save