diff options
author | zaaarf <zaaarf@proton.me> | 2023-08-26 18:09:36 +0200 |
---|---|---|
committer | zaaarf <zaaarf@proton.me> | 2023-08-26 18:09:52 +0200 |
commit | 7898882bc5811e5f06e70bc2bb6925e114869a56 (patch) | |
tree | ee2f2a4f75c72f4beaead402d7cbf2ad8d71bfe0 /src/main/java/ftbsc/lll/exceptions/MappingNotFoundException.java | |
parent | c3cc90d7743b18aaef0d22adb7292c63ef48603f (diff) |
feat: implemented abstraction logic
Diffstat (limited to 'src/main/java/ftbsc/lll/exceptions/MappingNotFoundException.java')
-rw-r--r-- | src/main/java/ftbsc/lll/exceptions/MappingNotFoundException.java | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/src/main/java/ftbsc/lll/exceptions/MappingNotFoundException.java b/src/main/java/ftbsc/lll/exceptions/MappingNotFoundException.java index 6c286fc..85ac08f 100644 --- a/src/main/java/ftbsc/lll/exceptions/MappingNotFoundException.java +++ b/src/main/java/ftbsc/lll/exceptions/MappingNotFoundException.java @@ -9,19 +9,10 @@ public class MappingNotFoundException extends RuntimeException { /** * Constructs a new mapping not found exception for the specified mapping. + * @param type the type of mapping * @param mapping the relevant mapping */ - public MappingNotFoundException(String mapping) { - super(String.format("Could not find mapping for %s!", mapping)); - } - - /** - * Constructs a new mapping not found exception for the specified mapping - * with the specified reason. - * @param mapping the relevant mapping - * @param reason the reason message - */ - public MappingNotFoundException(String mapping, String reason) { - this(mapping + ": " + reason); + public MappingNotFoundException(String type, String mapping) { + super(String.format("Could not find mapping for %s %s!", type, mapping)); } } |