mirror of
https://github.com/FatttSnake/ClassroomInteraction.git
synced 2026-04-06 05:01:27 +08:00
Add AlreadyExistsException, DependenciesNotFoundException, InsertException, NoConfigException
This commit is contained in:
@@ -1,7 +0,0 @@
|
||||
package com.cfive.classroom.library.database;
|
||||
|
||||
public class Test {
|
||||
public static void run() {
|
||||
System.out.println("Run database test");
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package com.cfive.classroom.library.database.util;
|
||||
|
||||
public class AlreadyExistsException extends Exception {
|
||||
public AlreadyExistsException() {
|
||||
super("This item already exists");
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package com.cfive.classroom.library.database.util;
|
||||
|
||||
public class DependenciesNotFoundException extends Exception {
|
||||
public DependenciesNotFoundException() {
|
||||
super("Could not found dependencies");
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package com.cfive.classroom.library.database.util;
|
||||
|
||||
public class InsertException extends Exception {
|
||||
public InsertException() {
|
||||
super("Could not insert the data into database");
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package com.cfive.classroom.library.database.util;
|
||||
|
||||
public class NoConfigException extends Exception {
|
||||
public NoConfigException() {
|
||||
super("Could not load configuration file");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user