Add: Exception to throw when required Parameter is not found
This commit is contained in:
+14
@@ -0,0 +1,14 @@
|
|||||||
|
package ch.unibas.dmi.dbis.cs108.casono.server.network.parser;
|
||||||
|
|
||||||
|
public class MissingParameterException extends RuntimeException {
|
||||||
|
private final String parameterKey;
|
||||||
|
|
||||||
|
public MissingParameterException(String message, String parameterKey) {
|
||||||
|
super(message);
|
||||||
|
this.parameterKey = parameterKey;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getParameterKey() {
|
||||||
|
return parameterKey;
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user