New archi: domain driven development
Working but need to check out code
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
"""Subtitle domain exceptions."""
|
||||
from ..shared.exceptions import DomainException, NotFoundError
|
||||
|
||||
|
||||
class SubtitleNotFound(NotFoundError):
|
||||
"""Raised when a subtitle is not found."""
|
||||
pass
|
||||
|
||||
|
||||
class InvalidSubtitleFormat(DomainException):
|
||||
"""Raised when subtitle format is invalid."""
|
||||
pass
|
||||
Reference in New Issue
Block a user