I have a datamigration I actually want to roll back if certain condition happen.
I know that migrations are automatically enclosed in a transaction, so I am safe just raising an exception, and then trust all changes to be rolled back. But which exception should I raise to abort my Django data migration?
Should I write my own exception, or am I fine with raise Exception('My message explaining the problem')
?
What is best practice?