Skip to content

Commit

Permalink
Add MembershipExceedException (#1637)
Browse files Browse the repository at this point in the history
  • Loading branch information
scmet committed Apr 30, 2024
1 parent 4b86b4c commit 7135ff4
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit 7135ff4

Please sign in to comment.