crated an exeption
This commit is contained in:
@ -0,0 +1,10 @@
|
|||||||
|
package mops.gruppen2.domain.exception;
|
||||||
|
|
||||||
|
import org.springframework.http.HttpStatus;
|
||||||
|
|
||||||
|
public class NoAdminAfterActionExeption extends EventException {
|
||||||
|
|
||||||
|
public NoAdminAfterActionExeption (String info) {
|
||||||
|
super(HttpStatus.INTERNAL_SERVER_ERROR, "Nach dieser Aktion hätte die Gruppe keinen Admin mehr", info);
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user