feat(backend,api): Rework whole comment
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
package com.betriebsratkanzlei.legalconsenthub.error
|
||||
|
||||
class CommentNotCreatedException(e: Exception): RuntimeException("Couldn't create comment", e)
|
||||
@@ -0,0 +1,3 @@
|
||||
package com.betriebsratkanzlei.legalconsenthub.error
|
||||
|
||||
class CommentNotDeletedException(e: Exception): RuntimeException("Couldn't delete comment", e)
|
||||
@@ -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")
|
||||
@@ -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)
|
||||
Reference in New Issue
Block a user