Error handling for parsing of enum

This commit is contained in:
2024-02-11 08:23:01 -05:00
parent 608324c500
commit 6259cd7803
+6 -2
View File
@@ -288,8 +288,12 @@ public enum DbManager {
// Parse the element into an enum; add to the output set // Parse the element into an enum; add to the output set
E enumConstant = java.lang.Enum.valueOf(enumClass, element); try {
enumSet.add(enumConstant); E enumConstant = java.lang.Enum.valueOf(enumClass, element);
enumSet.add(enumConstant);
} catch (Exception e) {
Logger.error(mysqlSet);
}
} }
// Return the output set // Return the output set