feat(backend,api): Rework whole comment

This commit is contained in:
2025-05-10 17:18:31 +02:00
parent 6a751285dc
commit d4ea9cd3d9
12 changed files with 268 additions and 78 deletions

View File

@@ -0,0 +1,3 @@
package com.betriebsratkanzlei.legalconsenthub.error
class CommentNotCreatedException(e: Exception): RuntimeException("Couldn't create comment", e)

View File

@@ -0,0 +1,3 @@
package com.betriebsratkanzlei.legalconsenthub.error
class CommentNotDeletedException(e: Exception): RuntimeException("Couldn't delete comment", e)

View File

@@ -0,0 +1,5 @@
package com.betriebsratkanzlei.legalconsenthub.error
import java.util.UUID
class CommentNotFoundException(id: UUID): RuntimeException("Couldn't find comment with ID: $id")

View File

@@ -0,0 +1,5 @@
package com.betriebsratkanzlei.legalconsenthub.error
import java.util.UUID
class CommentNotUpdatedException(e: Exception, id: UUID): RuntimeException("Couldn't update comment with ID: $id", e)