after handling constraint exception