Added Exception Class

This commit is contained in:
ahmad 2024-05-15 21:55:05 +02:00
parent e3654a5597
commit 795001f62b

View File

@ -0,0 +1,14 @@
package de.maishai.typedast.Exception;
public class ParameterAlreadyExistsException extends RuntimeException{
public ParameterAlreadyExistsException(String paraName) {
super("Parameter '" + paraName + "' already exists");
}
public ParameterAlreadyExistsException(String paraName, String methodOrConstructorName) {
super("Parameter '" + paraName + "' already exists in " + methodOrConstructorName);
}
public ParameterAlreadyExistsException() {
super("Parameter already exists");
}
}