1

set exceptions on join group

added emoji to error.html <- wichtig

                                                          Co-authored-by: AndiBuls <andreas.buls@uni-duesseldorf.de>
This commit is contained in:
[Mahgs]
2020-03-24 15:24:24 +01:00
parent 89354eec26
commit 4b6257c9f0
5 changed files with 21 additions and 14 deletions

View File

@ -1,5 +1,7 @@
package mops.gruppen2.controller;
import mops.gruppen2.domain.exception.EventException;
import mops.gruppen2.domain.exception.PageNotFoundException;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
@ -20,7 +22,7 @@ public class MopsController {
}
@GetMapping("*")
public String defaultLink() {
return "error";
public String defaultLink() throws EventException {
throw new PageNotFoundException("\uD83D\uDE41");
}
}