2022-07-20 13:18:57 +02:00
|
|
|
package fr.pandacube.lib.db;
|
2021-03-21 20:17:31 +01:00
|
|
|
|
2022-08-01 22:21:04 +02:00
|
|
|
/**
|
|
|
|
* Exception thrown when something bad happends when initializing a new table using {@link DB#initTable(Class)}.
|
|
|
|
*/
|
2021-03-21 20:17:31 +01:00
|
|
|
public class DBInitTableException extends DBException {
|
|
|
|
|
2022-08-01 22:21:04 +02:00
|
|
|
/* package */ <E extends SQLElement<E>> DBInitTableException(Class<E> tableElem, Throwable t) {
|
|
|
|
super("Error while initializing table " + ((tableElem != null) ? tableElem.getName() : "null"), t);
|
|
|
|
}
|
2021-03-21 20:17:31 +01:00
|
|
|
|
2022-08-01 22:21:04 +02:00
|
|
|
/* package */ <E extends SQLElement<E>> DBInitTableException(Class<E> tableElem, String message) {
|
|
|
|
super("Error while initializing table " + ((tableElem != null) ? tableElem.getName() : "null") + ": " + message);
|
|
|
|
}
|
2021-03-21 20:17:31 +01:00
|
|
|
|
|
|
|
}
|