changed own Exception

main
WummerMIB 2022-11-09 09:03:11 +01:00
parent 8d57d6dc8f
commit 37067f47d8
1 changed files with 12 additions and 2 deletions

View File

@ -1,7 +1,17 @@
package de.hs_mannheim.informatik.bank.domain; package de.hs_mannheim.informatik.bank.domain;
public class KundeNullException extends Exception { public class KundeNullException extends Exception {
public KundeNullException() { public KundeNullException() {}
System.err.println("Error: Kunde ist Null");
public KundeNullException(String message) {
super(message);
}
public KundeNullException(Throwable cause) {
super(cause);
}
public KundeNullException(String message, Throwable cause) {
super(message, cause);
} }
} }