summaryrefslogtreecommitdiff
path: root/src/main/java/ftbsc/lll/exceptions/InvalidClassNameException.java
diff options
context:
space:
mode:
author zaaarf <me@zaaarf.foo>2024-06-04 20:03:51 +0200
committer zaaarf <me@zaaarf.foo>2024-06-04 20:03:51 +0200
commit4d330a731bf44bcca291a23407c06ed063193921 (patch)
treedad468e37c33fcc264a49ce0c73a0d3b763ab034 /src/main/java/ftbsc/lll/exceptions/InvalidClassNameException.java
parentf8bf9996c92d15ee8499bda25f0a23070a6f7752 (diff)
feat: better inner classes api, removed deprecation warnings since that stuff is there to stayHEAD0.7.0dev
Diffstat (limited to 'src/main/java/ftbsc/lll/exceptions/InvalidClassNameException.java')
-rw-r--r--src/main/java/ftbsc/lll/exceptions/InvalidClassNameException.java15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/main/java/ftbsc/lll/exceptions/InvalidClassNameException.java b/src/main/java/ftbsc/lll/exceptions/InvalidClassNameException.java
new file mode 100644
index 0000000..caa468e
--- /dev/null
+++ b/src/main/java/ftbsc/lll/exceptions/InvalidClassNameException.java
@@ -0,0 +1,15 @@
+package ftbsc.lll.exceptions;
+
+/**
+ * Thrown when the user provides manually an invalid class name.
+ */
+public class InvalidClassNameException extends RuntimeException {
+
+ /**
+ * Constructs a new exception for the specified name.
+ * @param name the name in question
+ */
+ public InvalidClassNameException(String name) {
+ super(String.format("Provided class name %s is not valid!", name));
+ }
+}