mongrator.exceptions¶
mongrator.exceptions
¶
MigratorError
¶
Bases: Exception
Base class for all mongrator errors.
Source code in src/mongrator/exceptions.py
1 2 | |
ConfigurationError
¶
Bases: MigratorError
Invalid or missing configuration.
Source code in src/mongrator/exceptions.py
5 6 | |
ChecksumMismatchError
¶
Bases: MigratorError
Applied migration file has been modified since it was run.
Source code in src/mongrator/exceptions.py
9 10 11 12 13 14 15 16 17 18 19 20 | |
DuplicateMigrationIdError
¶
Bases: MigratorError
Two migration files share the same ID.
Source code in src/mongrator/exceptions.py
23 24 25 26 27 28 | |
MigrationImportError
¶
Bases: MigratorError
A migration file could not be imported.
Source code in src/mongrator/exceptions.py
31 32 33 34 35 36 37 | |
InvalidMigrationFileError
¶
Bases: MigratorError
A migration file is missing required callables or has an invalid structure.
Source code in src/mongrator/exceptions.py
40 41 42 43 44 45 46 | |
NoDownMethodError
¶
Bases: MigratorError
A migration has no rollback path.
Source code in src/mongrator/exceptions.py
49 50 51 52 53 54 55 56 57 | |
MigrationNotFoundError
¶
Bases: MigratorError
A referenced migration ID does not exist.
Source code in src/mongrator/exceptions.py
60 61 62 63 64 65 | |
ReservedMigrationIdError
¶
Bases: MigratorError
A migration file uses a reserved internal ID.
Source code in src/mongrator/exceptions.py
68 69 70 71 72 73 74 75 | |
MigrationLockError
¶
Bases: MigratorError
Could not acquire the migration lock.
Source code in src/mongrator/exceptions.py
78 79 80 81 82 83 84 85 86 | |
TransactionNotSupportedError
¶
Bases: MigratorError
The MongoDB server does not support multi-document transactions.
Transactions require either a replica set or a sharded cluster (mongos). Standalone servers do not support them.
Source code in src/mongrator/exceptions.py
89 90 91 92 93 94 95 96 97 98 99 100 101 | |