forked from MagicBane/Server
Error handling for parsing of enum
This commit is contained in:
@@ -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