diff options
author | solonovamax <solonovamax@12oclockpoint.com> | 2022-11-01 12:27:04 -0400 |
---|---|---|
committer | TheKodeToad <TheKodeToad@proton.me> | 2022-11-08 16:25:09 +0000 |
commit | dabb84f62a35ea67793425f9118ea6a5bca96e00 (patch) | |
tree | 2152bd8dec22862b8890a78544b241883e6adc7c /libraries/launcher/org/prismlauncher/exception/ParameterNotFoundException.java | |
parent | 9b8096c6993df68ac99c5c24483e169fbec60979 (diff) | |
download | PrismLauncher-dabb84f62a35ea67793425f9118ea6a5bca96e00.tar.gz PrismLauncher-dabb84f62a35ea67793425f9118ea6a5bca96e00.tar.bz2 PrismLauncher-dabb84f62a35ea67793425f9118ea6a5bca96e00.zip |
Cleanup launcher classes
Cleanup a bunch of the code in launcher classes
- Migrate the majority of the reflection to ReflectionUtils
- Decrease logic in AbstractLauncher
- Add logging to launcher classes at FINE level
- make mcParams in AbstractLauncher an immutable list to prevent runtime manipulation
- StandardLauncher instead copies the list to modify it
Signed-off-by: solonovamax <solonovamax@12oclockpoint.com>
Diffstat (limited to 'libraries/launcher/org/prismlauncher/exception/ParameterNotFoundException.java')
-rw-r--r-- | libraries/launcher/org/prismlauncher/exception/ParameterNotFoundException.java | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/libraries/launcher/org/prismlauncher/exception/ParameterNotFoundException.java b/libraries/launcher/org/prismlauncher/exception/ParameterNotFoundException.java index c083e02a..3dd6efc3 100644 --- a/libraries/launcher/org/prismlauncher/exception/ParameterNotFoundException.java +++ b/libraries/launcher/org/prismlauncher/exception/ParameterNotFoundException.java @@ -54,10 +54,28 @@ package org.prismlauncher.exception; + +@SuppressWarnings("serial") public final class ParameterNotFoundException extends IllegalArgumentException { - public ParameterNotFoundException(String key) { - super("Unknown parameter name: " + key); + public ParameterNotFoundException(String message, Throwable cause) { + super(message, cause); + } + + public ParameterNotFoundException(Throwable cause) { + super(cause); + } + + public ParameterNotFoundException(String message) { + super(message); + } + + public ParameterNotFoundException() { + super(); + } + + public static ParameterNotFoundException forParameterName(String parameterName) { + return new ParameterNotFoundException(String.format("Unknown parameter name '%s'", parameterName)); } } |