catch ClassCastException in the ItemDatabase update method
This commit is contained in:
parent
9bbd6028d0
commit
6aa39cb83b
|
@ -107,7 +107,7 @@ public class ItemDatabase {
|
|||
ChestShop.getBukkitLogger().log(Level.SEVERE, "YAML of the item with ID " + Base62.encode(item.getId()) + " (" + item.getId() + ") is corrupted: \n" + serialized);
|
||||
}
|
||||
}
|
||||
} catch (IOException | ClassNotFoundException | SQLException e) {
|
||||
} catch (IOException | ClassNotFoundException | SQLException | ClassCastException e) {
|
||||
ChestShop.getBukkitLogger().log(Level.SEVERE, "Unable to convert item with ID " + Base62.encode(item.getId()) + " (" + item.getId() + ")", e);
|
||||
} catch (StackOverflowError e) {
|
||||
ChestShop.getBukkitLogger().log(Level.SEVERE, "Item with ID " + Base62.encode(item.getId()) + " (" + item.getId() + ") is corrupted. Sorry :(");
|
||||
|
|
Loading…
Reference in New Issue