mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-03 06:28:49 +00:00
Further refactoring, move away from using future thread pool
This commit is contained in:
1 parent
4c90e5498c
commit
39e0b25d46
56 files changed
+737
-1713
No files matched your search
@@ -0,0 +1,18 @@
|
||||
package net.william278.huskhomes.util;
|
||||
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
public class ValidationException extends IllegalArgumentException {
|
||||
|
||||
public ValidationException(@NotNull ValidationException.Type error) {
|
||||
super("Error validating position: " + error.name());
|
||||
}
|
||||
|
||||
public enum Type {
|
||||
NOT_FOUND,
|
||||
NAME_TAKEN,
|
||||
NAME_INVALID,
|
||||
DESCRIPTION_INVALID
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user