|
1 | 1 | # Base exception for all PUM errors |
2 | 2 | class PumException(Exception): |
3 | | - """Base class for all exceptions raised by PUM.""" |
| 3 | + """Base class for all exceptions raised by PUM. |
| 4 | +
|
| 5 | + .. versionadded:: 1.0.0 |
| 6 | + """ |
4 | 7 |
|
5 | 8 |
|
6 | 9 | class PumDependencyError(PumException): |
7 | | - """Exception when dependency are not resolved""" |
| 10 | + """Exception when dependency are not resolved. |
| 11 | +
|
| 12 | + .. versionadded:: 1.0.0 |
| 13 | + """ |
8 | 14 |
|
9 | 15 |
|
10 | 16 | # --- Configuration and Validation Errors --- |
11 | 17 |
|
12 | 18 |
|
13 | 19 | class PumConfigError(PumException): |
14 | | - """Exception raised for errors in the PUM configuration.""" |
| 20 | + """Exception raised for errors in the PUM configuration. |
| 21 | +
|
| 22 | + .. versionadded:: 1.0.0 |
| 23 | + """ |
15 | 24 |
|
16 | 25 |
|
17 | 26 | class PumInvalidChangelog(PumException): |
18 | | - """Exception raised for invalid changelog.""" |
| 27 | + """Exception raised for invalid changelog. |
| 28 | +
|
| 29 | + .. versionadded:: 1.0.0 |
| 30 | + """ |
19 | 31 |
|
20 | 32 |
|
21 | 33 | # --- Schema Migration Errors --- |
22 | 34 | class PumSchemaMigrationError(PumException): |
23 | | - """Exception raised for errors related to schema migrations.""" |
| 35 | + """Exception raised for errors related to schema migrations. |
| 36 | +
|
| 37 | + .. versionadded:: 1.0.0 |
| 38 | + """ |
24 | 39 |
|
25 | 40 |
|
26 | 41 | class PumSchemaMigrationNoBaselineError(PumSchemaMigrationError): |
27 | | - """Exception raised when no baseline version is found in the migration table.""" |
| 42 | + """Exception raised when no baseline version is found in the migration table. |
| 43 | +
|
| 44 | + .. versionadded:: 1.0.0 |
| 45 | + """ |
28 | 46 |
|
29 | 47 |
|
30 | 48 | # --- Hook Errors --- |
31 | 49 |
|
32 | 50 |
|
33 | 51 | class PumHookError(PumException): |
34 | | - """Exception raised for errors by an invalid hook.""" |
| 52 | + """Exception raised for errors by an invalid hook. |
| 53 | +
|
| 54 | + .. versionadded:: 1.0.0 |
| 55 | + """ |
35 | 56 |
|
36 | 57 |
|
37 | 58 | # --- Changelog/SQL Errors --- |
38 | 59 |
|
39 | 60 |
|
40 | 61 | class PumSqlError(PumException): |
41 | | - """Exception raised for SQL-related errors in PUM.""" |
| 62 | + """Exception raised for SQL-related errors in PUM. |
| 63 | +
|
| 64 | + .. versionadded:: 1.0.0 |
| 65 | + """ |
42 | 66 |
|
43 | 67 |
|
44 | 68 | # --- Dump/Restore Errors (for dumper.py, if needed) --- |
45 | 69 |
|
46 | 70 |
|
47 | 71 | class PgDumpCommandError(PumException): |
48 | | - """Exception raised for invalid pg_dump command.""" |
| 72 | + """Exception raised for invalid pg_dump command. |
| 73 | +
|
| 74 | + .. versionadded:: 1.0.0 |
| 75 | + """ |
49 | 76 |
|
50 | 77 |
|
51 | 78 | class PgDumpFailed(PumException): |
52 | | - """Exception raised when pg_dump fails.""" |
| 79 | + """Exception raised when pg_dump fails. |
| 80 | +
|
| 81 | + .. versionadded:: 1.0.0 |
| 82 | + """ |
53 | 83 |
|
54 | 84 |
|
55 | 85 | class PgRestoreCommandError(PumException): |
56 | | - """Exception raised for invalid pg_restore command.""" |
| 86 | + """Exception raised for invalid pg_restore command. |
| 87 | +
|
| 88 | + .. versionadded:: 1.0.0 |
| 89 | + """ |
57 | 90 |
|
58 | 91 |
|
59 | 92 | class PgRestoreFailed(PumException): |
60 | | - """Exception raised when pg_restore fails.""" |
| 93 | + """Exception raised when pg_restore fails. |
| 94 | +
|
| 95 | + .. versionadded:: 1.0.0 |
| 96 | + """ |
0 commit comments