This commit is contained in:
Francesco
2023-09-25 10:10:30 +02:00
parent 95e8dea90f
commit cdbad51641
50 changed files with 1171 additions and 218 deletions

View File

@@ -0,0 +1,16 @@
package tech.ailef.dbadmin.external.exceptions;
public class DbAdminException extends RuntimeException {
private static final long serialVersionUID = 8120227031645804467L;
public DbAdminException() {
}
public DbAdminException(Throwable e) {
super(e);
}
public DbAdminException(String msg) {
super(msg);
}
}

View File

@@ -0,0 +1,19 @@
package tech.ailef.dbadmin.external.exceptions;
/**
* Thrown during the computation of pagination if the requested
* page number is not valid within the current request (e.g. it is greater
* than the maximum available page). Used internally to redirect the
* user to a default page.
*/
public class InvalidPageException extends DbAdminException {
private static final long serialVersionUID = -8891734807568233099L;
public InvalidPageException() {
}
public InvalidPageException(String msg) {
super(msg);
}
}