diff --git a/modules/fbs-core/api/src/main/scala/de/thm/ii/fbs/controller/exception/MembershipExceededException.scala b/modules/fbs-core/api/src/main/scala/de/thm/ii/fbs/controller/exception/MembershipExceededException.scala new file mode 100644 index 000000000..1971f61df --- /dev/null +++ b/modules/fbs-core/api/src/main/scala/de/thm/ii/fbs/controller/exception/MembershipExceededException.scala @@ -0,0 +1,11 @@ +package de.thm.ii.fbs.controller.exception + +import org.springframework.http.HttpStatus +import org.springframework.web.bind.annotation.ResponseStatus + +/** + * ConflictException 400 + * @param message A human readable String + */ +@ResponseStatus(value = HttpStatus.CONFLICT) +class MembershipExceededException(message: String = "Die Gruppe ist voll.") extends RuntimeException(message) \ No newline at end of file