more than one migration matches a name prefix pass class badmigrationerrorexception there s an impossibletoresolve circular dependency pass class inconsistentmigrationhistoryexception a model s base classes can t be resolved pass class irreversibleerrorruntimeerror an attempt on a node is made that is not available in the graph def initself message node originnone self message message self origin origin self node node def strself return self message def reprself return nodenotfounderrorr self node class migrationschemamissingdatabaseerror pass class invalidmigrationplanvalueerror pass more than one migration matches a name prefix there s a bad migration unreadable bad format etc there s an impossible to resolve circular dependency an applied migration has some of its dependencies not applied a model s base classes can t be resolved an irreversible migration is about to be reversed an attempt on a node is made that is not available in the graph
from django.db import DatabaseError


class AmbiguityError(Exception):
    

    pass


class BadMigrationError(Exception):
    

    pass


class CircularDependencyError(Exception):
    

    pass


class InconsistentMigrationHistory(Exception):
    

    pass


class InvalidBasesError(ValueError):
    

    pass


class IrreversibleError(RuntimeError):
    

    pass


class NodeNotFoundError(LookupError):
    

    def __init__(self, message, node, origin=None):
        self.message = message
        self.origin = origin
        self.node = node

    def __str__(self):
        return self.message

    def __repr__(self):
        return "NodeNotFoundError(%r)" % (self.node,)


class MigrationSchemaMissing(DatabaseError):
    pass


class InvalidMigrationPlan(ValueError):
    pass