feat(domain): added domain exceptions

This commit is contained in:
ITQ committed 2026-04-18 12:04:33 +03:00
1 parent f8b59c8aad
commit 31a549f600
3 files changed
+17

No files matched your search

@@ -0,0 +1,6 @@
package com.project.movienight.domain.exception
class BlockedValueException(
target: String,
field: String,
) : DomainException("$target with this $field is not acceptable")
@@ -0,0 +1,5 @@
package com.project.movienight.domain.exception
open class DomainException(
message: String,
) : RuntimeException(message)
@@ -0,0 +1,6 @@
package com.project.movienight.domain.exception
class EntityNotFoundException(
entity: String,
id: String,
) : DomainException("$entity with id $id not found")