Exception rework: clearer message + origin
Co-authored-by: [Mahgs] <maxoerter@gmx.de> Co-authored-by: Christoph <tobi@urpost.de>
This commit is contained in:
@ -3,11 +3,8 @@ package mops.gruppen2.domain.Exceptions;
|
||||
import org.springframework.http.HttpStatus;
|
||||
|
||||
public class GroupIdMismatchException extends EventException {
|
||||
public GroupIdMismatchException(String msg) {
|
||||
super("Falsche Gruppe für Event." + " (" + msg + ")", HttpStatus.INTERNAL_SERVER_ERROR);
|
||||
}
|
||||
|
||||
public GroupIdMismatchException() {
|
||||
super("", HttpStatus.INTERNAL_SERVER_ERROR);
|
||||
public GroupIdMismatchException(String info) {
|
||||
super(HttpStatus.INTERNAL_SERVER_ERROR, "Falsche Gruppe für Event.", info);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user