diff --git a/src/main/java/no/ntnu/idi/stud/savingsapp/exception/goal/GroupNotFoundException.java b/src/main/java/no/ntnu/idi/stud/savingsapp/exception/goal/GroupNotFoundException.java new file mode 100644 index 0000000000000000000000000000000000000000..efb1667f3e8d119ba7fe50afc04d00a99812b05c --- /dev/null +++ b/src/main/java/no/ntnu/idi/stud/savingsapp/exception/goal/GroupNotFoundException.java @@ -0,0 +1,16 @@ +package no.ntnu.idi.stud.savingsapp.exception.goal; + +public final class GroupNotFoundException extends RuntimeException{ + + /** + * Constructs a GroupNotFoundException with default message. + */ + public GroupNotFoundException() { super("Group not found");} + + /** + * Constructs a GroupNotFoundException with custom message. + * + * @param string the custom exception message + */ + public GroupNotFoundException(String string) {super(string);} +}