django_evolution.errors
Standard exceptions for Django Evolution.
Exceptions
|
Base class for migration errors. |
|
A mutation cannot be simulated. |
|
There was an issue working with database state. |
A feature isn't supported by the current version of Django. |
|
An evolution baseline is missing. |
|
|
Base class for a Django Evolution exception. |
|
Execution of an evolution failed. |
An operation is not supported by the mutation or database backend. |
|
The task has already been queued on the evolver. |
|
|
An invalid signature version was provided or found. |
|
There are conflicts between migrations. |
An error with the stored history of migrations. |
|
A requested signature could not be found. |
|
Error queueing an evolver task. |
|
|
A mutation simulation has failed. |
- exception django_evolution.errors.EvolutionException(msg)
Bases:
ExceptionBase class for a Django Evolution exception.
- __init__(msg)
- __str__()
Return str(self).
- exception django_evolution.errors.EvolutionExecutionError(msg, app_label=None, detailed_error=None, last_sql_statement=None)
Bases:
EvolutionExceptionExecution of an evolution failed.
Details about the failure, including the app that failed and the last SQL statement executed, are available in the exception as attributes.
- detailed_error
Detailed error information from the failure that triggered this exception. This might be another exception’s error message, or it may be
None.- Type:
- __init__(msg, app_label=None, detailed_error=None, last_sql_statement=None)
Initialize the error.
- Parameters:
msg (
unicode) – The error message.app_label (
unicode, optional) – The label of the app that failed evolution.detailed_error (
unicode, optional) – Detailed error information from the failure that triggered this exception. This might be another exception’s error message.last_sql_statement (
unicode, optional) – The last SQL statement that was executed.
- __annotations__ = {}
- exception django_evolution.errors.CannotSimulate(msg)
Bases:
EvolutionExceptionA mutation cannot be simulated.
- __annotations__ = {}
- exception django_evolution.errors.SimulationFailure(msg)
Bases:
EvolutionExceptionA mutation simulation has failed.
- __annotations__ = {}
- exception django_evolution.errors.EvolutionNotImplementedError(msg)
Bases:
EvolutionException,NotImplementedErrorAn operation is not supported by the mutation or database backend.
- __annotations__ = {}
- exception django_evolution.errors.DatabaseStateError(msg)
Bases:
EvolutionExceptionThere was an issue working with database state.
- __annotations__ = {}
- exception django_evolution.errors.MissingSignatureError(msg)
Bases:
EvolutionExceptionA requested signature could not be found.
- __annotations__ = {}
- exception django_evolution.errors.QueueEvolverTaskError(msg)
Bases:
EvolutionExceptionError queueing an evolver task.
- __annotations__ = {}
- exception django_evolution.errors.EvolutionTaskAlreadyQueuedError(msg)
Bases:
QueueEvolverTaskErrorThe task has already been queued on the evolver.
- __annotations__ = {}
- exception django_evolution.errors.EvolutionBaselineMissingError(msg)
Bases:
EvolutionExceptionAn evolution baseline is missing.
- __annotations__ = {}
- exception django_evolution.errors.InvalidSignatureVersion(version)
Bases:
EvolutionExceptionAn invalid signature version was provided or found.
- __init__(version)
Initialize the exception.
- Parameters:
version (
int) – The invalid signature version.
- __annotations__ = {}
- exception django_evolution.errors.BaseMigrationError(msg)
Bases:
EvolutionExceptionBase class for migration errors.
- __annotations__ = {}
- exception django_evolution.errors.MigrationHistoryError(msg)
Bases:
BaseMigrationErrorAn error with the stored history of migrations.
This is raised if any applied migrations have unapplied dependencies.
- __annotations__ = {}
- exception django_evolution.errors.MigrationConflictsError(conflicts)
Bases:
BaseMigrationErrorThere are conflicts between migrations.
- __init__(conflicts)
Initialize the error.
- Parameters:
conflicts (
dict) – A dictionary of conflicts, provided by the migrations system.
- __annotations__ = {}
- exception django_evolution.errors.DjangoEvolutionSupportError(msg)
Bases:
EvolutionExceptionA feature isn’t supported by the current version of Django.
- __annotations__ = {}