aboutsummaryrefslogtreecommitdiff
path: root/libraries/launcher/org/prismlauncher/exception/ParseException.java
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/launcher/org/prismlauncher/exception/ParseException.java')
-rw-r--r--libraries/launcher/org/prismlauncher/exception/ParseException.java21
1 files changed, 21 insertions, 0 deletions
diff --git a/libraries/launcher/org/prismlauncher/exception/ParseException.java b/libraries/launcher/org/prismlauncher/exception/ParseException.java
index 8904f9ee..2243f23f 100644
--- a/libraries/launcher/org/prismlauncher/exception/ParseException.java
+++ b/libraries/launcher/org/prismlauncher/exception/ParseException.java
@@ -54,10 +54,31 @@
package org.prismlauncher.exception;
+
+@SuppressWarnings({ "serial", "unused" })
public final class ParseException extends IllegalArgumentException {
public ParseException(String message) {
super(message);
}
+ public ParseException(String message, Throwable cause) {
+ super(message, cause);
+ }
+
+ public ParseException(Throwable cause) {
+ super(cause);
+ }
+
+ public ParseException() {
+ super();
+ }
+
+ public static ParseException forInputString(String inputString) {
+ return new ParseException(String.format("Could not parse input string '%s'", inputString));
+ }
+
+ public static ParseException forInputString(String inputString, Throwable cause) {
+ return new ParseException(String.format("Could not parse input string '%s'", inputString), cause);
+ }
}