mirror of
https://github.com/JonathanFleischmann/CompilerULTIMATE.git
synced 2024-12-28 17:48:03 +00:00
Added Exception Class
This commit is contained in:
parent
e3654a5597
commit
795001f62b
@ -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");
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user