From 29ac6122ac21e60694ef6c1732a40a20046a41fb Mon Sep 17 00:00:00 2001 From: WummerMIB Date: Wed, 9 Nov 2022 09:10:38 +0100 Subject: [PATCH] added own Exceptiom NotEnoughMoneyException --- .../bank/domain/NotEnoughMoneyException.java | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 Bank-Beispiel/src/de/hs_mannheim/informatik/bank/domain/NotEnoughMoneyException.java diff --git a/Bank-Beispiel/src/de/hs_mannheim/informatik/bank/domain/NotEnoughMoneyException.java b/Bank-Beispiel/src/de/hs_mannheim/informatik/bank/domain/NotEnoughMoneyException.java new file mode 100644 index 0000000..04e649a --- /dev/null +++ b/Bank-Beispiel/src/de/hs_mannheim/informatik/bank/domain/NotEnoughMoneyException.java @@ -0,0 +1,19 @@ +package de.hs_mannheim.informatik.bank.domain; + +public class NotEnoughMoneyException extends IllegalArgumentException { + public NotEnoughMoneyException() { + } + + public NotEnoughMoneyException(String message) { + super(message); + } + + public NotEnoughMoneyException(Throwable cause) { + super(cause); + } + + public NotEnoughMoneyException(String message, Throwable cause) { + super(message, cause); + } + +}