aboutsummaryrefslogtreecommitdiff
path: root/libraries/launcher/org/prismlauncher/exception
diff options
context:
space:
mode:
authorhe3als <65787561+he3als@users.noreply.github.com>2022-10-22 15:30:40 +0100
committerGitHub <noreply@github.com>2022-10-22 15:30:40 +0100
commit89fd84d916b58cb7c82c94bcadc0834de8f5a039 (patch)
treefae8c646ca9b35bc2499a4c39787387686ae2a91 /libraries/launcher/org/prismlauncher/exception
parent92dfd659f1a3e11accdbf0ebbdc7cb91f74d9a21 (diff)
parent81f13052701dbec499ef65fe714f107a9b584ebf (diff)
downloadPrismLauncher-89fd84d916b58cb7c82c94bcadc0834de8f5a039.tar.gz
PrismLauncher-89fd84d916b58cb7c82c94bcadc0834de8f5a039.tar.bz2
PrismLauncher-89fd84d916b58cb7c82c94bcadc0834de8f5a039.zip
Merge branch 'PrismLauncher:develop' into develop
Diffstat (limited to 'libraries/launcher/org/prismlauncher/exception')
-rw-r--r--libraries/launcher/org/prismlauncher/exception/ParameterNotFoundException.java25
-rw-r--r--libraries/launcher/org/prismlauncher/exception/ParseException.java25
2 files changed, 50 insertions, 0 deletions
diff --git a/libraries/launcher/org/prismlauncher/exception/ParameterNotFoundException.java b/libraries/launcher/org/prismlauncher/exception/ParameterNotFoundException.java
new file mode 100644
index 00000000..641e0c99
--- /dev/null
+++ b/libraries/launcher/org/prismlauncher/exception/ParameterNotFoundException.java
@@ -0,0 +1,25 @@
+/*
+ * Copyright 2012-2021 MultiMC Contributors
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.prismlauncher.exception;
+
+public final class ParameterNotFoundException extends IllegalArgumentException {
+
+ public ParameterNotFoundException(String key) {
+ super("Unknown parameter name: " + key);
+ }
+
+}
diff --git a/libraries/launcher/org/prismlauncher/exception/ParseException.java b/libraries/launcher/org/prismlauncher/exception/ParseException.java
new file mode 100644
index 00000000..51d25a62
--- /dev/null
+++ b/libraries/launcher/org/prismlauncher/exception/ParseException.java
@@ -0,0 +1,25 @@
+/*
+ * Copyright 2012-2021 MultiMC Contributors
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.prismlauncher.exception;
+
+public final class ParseException extends IllegalArgumentException {
+
+ public ParseException(String message) {
+ super(message);
+ }
+
+}