The ORM UnitOfWork should not have a message specific to MySQL. It is the bad place to check for this type of error