mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-09-30 07:37:34 +02:00
Added helpful message for API authors
Helps debug issue for missing database object default constructors.
This commit is contained in:
parent
e23818f73d
commit
68ec5e48cb
@ -66,8 +66,11 @@ public class Database<T> {
|
||||
try {
|
||||
result = handler.loadObject(uniqueId);
|
||||
} catch (InstantiationException | IllegalAccessException | IllegalArgumentException | InvocationTargetException
|
||||
| ClassNotFoundException | IntrospectionException | NoSuchMethodException | SecurityException e) {
|
||||
| ClassNotFoundException | IntrospectionException | SecurityException e) {
|
||||
logger.severe(() -> "Could not load object from database! " + e.getMessage());
|
||||
} catch (NoSuchMethodException e) {
|
||||
logger.severe(() -> "Could not load object from database! " + e.getMessage());
|
||||
logger.severe(() -> "Did you forget the JavaBean no-arg default constructor?");
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user