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:
Exception
Base 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:
EvolutionException
Execution 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.
- exception django_evolution.errors.CannotSimulate(msg)
Bases:
EvolutionException
A mutation cannot be simulated.
- exception django_evolution.errors.SimulationFailure(msg)
Bases:
EvolutionException
A mutation simulation has failed.
- exception django_evolution.errors.EvolutionNotImplementedError(msg)
Bases:
EvolutionException
,NotImplementedError
An operation is not supported by the mutation or database backend.
- exception django_evolution.errors.DatabaseStateError(msg)
Bases:
EvolutionException
There was an issue working with database state.
- exception django_evolution.errors.MissingSignatureError(msg)
Bases:
EvolutionException
A requested signature could not be found.
- exception django_evolution.errors.QueueEvolverTaskError(msg)
Bases:
EvolutionException
Error queueing an evolver task.
- exception django_evolution.errors.EvolutionTaskAlreadyQueuedError(msg)
Bases:
QueueEvolverTaskError
The task has already been queued on the evolver.
- exception django_evolution.errors.EvolutionBaselineMissingError(msg)
Bases:
EvolutionException
An evolution baseline is missing.
- exception django_evolution.errors.InvalidSignatureVersion(version)
Bases:
EvolutionException
An invalid signature version was provided or found.
- exception django_evolution.errors.BaseMigrationError(msg)
Bases:
EvolutionException
Base class for migration errors.
- exception django_evolution.errors.MigrationHistoryError(msg)
Bases:
BaseMigrationError
An error with the stored history of migrations.
This is raised if any applied migrations have unapplied dependencies.
- exception django_evolution.errors.MigrationConflictsError(conflicts)
Bases:
BaseMigrationError
There are conflicts between migrations.
- exception django_evolution.errors.DjangoEvolutionSupportError(msg)
Bases:
EvolutionException
A feature isn’t supported by the current version of Django.