Error handling for parsing of enum
This commit is contained in:
1 parent
608324c500
commit
6259cd7803
1 file changed
+6
-2
@@ -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
|
||||||
|
|||||||
Reference in new issue
Block a user