mirror of
https://github.com/dalbodeule/snap-admin.git
synced 2025-12-16 21:31:59 +09:00
0.1.0
This commit is contained in:
16
src/main/java/tech/ailef/dbadmin/external/exceptions/DbAdminException.java
vendored
Normal file
16
src/main/java/tech/ailef/dbadmin/external/exceptions/DbAdminException.java
vendored
Normal 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);
|
||||
}
|
||||
}
|
||||
19
src/main/java/tech/ailef/dbadmin/external/exceptions/InvalidPageException.java
vendored
Normal file
19
src/main/java/tech/ailef/dbadmin/external/exceptions/InvalidPageException.java
vendored
Normal 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);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user