generated from softwareone-platform/swo-extension-playground
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patherrors.py
More file actions
33 lines (18 loc) · 652 Bytes
/
errors.py
File metadata and controls
33 lines (18 loc) · 652 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
from typing import override
class BaseError(Exception):
"""Base error."""
@override
def __init__(self, message: str):
super().__init__(message)
class CreateMigrationError(BaseError):
"""Error creating the migration file."""
class LoadMigrationError(BaseError):
"""Error loading migrations."""
class NewMigrationError(BaseError):
"""Error creating new migration."""
class MigrationFolderError(BaseError):
"""Error accessing migrations folder."""
class RunMigrationError(BaseError):
"""Error running migrations."""
class StateNotFoundError(BaseError):
"""Error getting state from state file."""