From 37067f47d87154891f61a5cd813ce5d6aff0a71d Mon Sep 17 00:00:00 2001 From: WummerMIB Date: Wed, 9 Nov 2022 09:03:11 +0100 Subject: [PATCH] changed own Exception --- .../informatik/bank/domain/KundeNullException.java | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/Bank-Beispiel/src/de/hs_mannheim/informatik/bank/domain/KundeNullException.java b/Bank-Beispiel/src/de/hs_mannheim/informatik/bank/domain/KundeNullException.java index af19097..3503ccc 100644 --- a/Bank-Beispiel/src/de/hs_mannheim/informatik/bank/domain/KundeNullException.java +++ b/Bank-Beispiel/src/de/hs_mannheim/informatik/bank/domain/KundeNullException.java @@ -1,7 +1,17 @@ package de.hs_mannheim.informatik.bank.domain; public class KundeNullException extends Exception { - public KundeNullException() { - System.err.println("Error: Kunde ist Null"); + public KundeNullException() {} + + public KundeNullException(String message) { + super(message); + } + + public KundeNullException(Throwable cause) { + super(cause); + } + + public KundeNullException(String message, Throwable cause) { + super(message, cause); } }