constraint violation exception implemented.