django_evolution.errors

Standard exceptions for Django Evolution.

Exceptions

BaseMigrationError(msg)

Base class for migration errors.

CannotSimulate(msg)

A mutation cannot be simulated.

DatabaseStateError(msg)

There was an issue working with database state.

DjangoEvolutionSupportError(msg)

A feature isn't supported by the current version of Django.

EvolutionBaselineMissingError(msg)

An evolution baseline is missing.

EvolutionException(msg)

Base class for a Django Evolution exception.

EvolutionExecutionError(msg[, app_label, ...])

Execution of an evolution failed.

EvolutionNotImplementedError(msg)

An operation is not supported by the mutation or database backend.

EvolutionTaskAlreadyQueuedError(msg)

The task has already been queued on the evolver.

InvalidSignatureVersion(version)

An invalid signature version was provided or found.

MigrationConflictsError(conflicts)

There are conflicts between migrations.

MigrationHistoryError(msg)

An error with the stored history of migrations.

MissingSignatureError(msg)

A requested signature could not be found.

QueueEvolverTaskError(msg)

Error queueing an evolver task.

SimulationFailure(msg)

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.

app_label

The label of the app that failed evolution. This may be None.

Type:

unicode

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:

unicode

last_sql_statement

The last SQL statement that was executed. This may be None.

Type:

unicode

__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.

__init__(version)

Initialize the exception.

Parameters:

version (int) – The invalid signature version.

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.

__init__(conflicts)

Initialize the error.

Parameters:

conflicts (dict) – A dictionary of conflicts, provided by the migrations system.

exception django_evolution.errors.DjangoEvolutionSupportError(msg)

Bases: EvolutionException

A feature isn’t supported by the current version of Django.