feat(domain): added domain exceptions

This commit is contained in:
ITQ
2026-04-18 12:04:33 +03:00
parent f8b59c8aad
commit 31a549f600
3 changed files with 17 additions and 0 deletions
@@ -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")