diff options
author | TheKodeToad <TheKodeToad@proton.me> | 2022-11-08 17:51:18 +0000 |
---|---|---|
committer | TheKodeToad <TheKodeToad@proton.me> | 2022-11-08 17:51:18 +0000 |
commit | 32c2ad2bbd087b83fe5e1cfe03926410ec95bcca (patch) | |
tree | 7e532089643eaab82b84a28ae974e23535ec30fa /libraries/launcher/org/prismlauncher/exception/ParameterNotFoundException.java | |
parent | f2ca9a6b319ad0ade04837f6830e682bc86c01a2 (diff) | |
download | PrismLauncher-32c2ad2bbd087b83fe5e1cfe03926410ec95bcca.tar.gz PrismLauncher-32c2ad2bbd087b83fe5e1cfe03926410ec95bcca.tar.bz2 PrismLauncher-32c2ad2bbd087b83fe5e1cfe03926410ec95bcca.zip |
A lot more cleanup
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
Diffstat (limited to 'libraries/launcher/org/prismlauncher/exception/ParameterNotFoundException.java')
-rw-r--r-- | libraries/launcher/org/prismlauncher/exception/ParameterNotFoundException.java | 22 |
1 files changed, 3 insertions, 19 deletions
diff --git a/libraries/launcher/org/prismlauncher/exception/ParameterNotFoundException.java b/libraries/launcher/org/prismlauncher/exception/ParameterNotFoundException.java index 52c2a368..524076ff 100644 --- a/libraries/launcher/org/prismlauncher/exception/ParameterNotFoundException.java +++ b/libraries/launcher/org/prismlauncher/exception/ParameterNotFoundException.java @@ -1,7 +1,6 @@ // SPDX-License-Identifier: GPL-3.0-only /* - * Prism Launcher - * + * Prism Launcher - Minecraft Launcher * Copyright (C) 2022 icelimetea <fr3shtea@outlook.com> * Copyright (C) 2022 solonovamax <solonovamax@12oclockpoint.com> * Copyright (C) 2022 TheKodeToad <TheKodeToad@proton.me> @@ -42,23 +41,8 @@ public final class ParameterNotFoundException extends IllegalArgumentException { private static final long serialVersionUID = 1L; - public ParameterNotFoundException(String message, Throwable cause) { - super(message, cause); - } - - public ParameterNotFoundException(Throwable cause) { - super(cause); - } - - public ParameterNotFoundException(String message) { - super(message); - } - - public ParameterNotFoundException() { - } - - public static ParameterNotFoundException forParameterName(String parameterName) { - return new ParameterNotFoundException(String.format("Unknown parameter name '%s'", parameterName)); + public ParameterNotFoundException(String key) { + super(String.format("Required parameter '%s' was not found", key)); } } |