I tried to suppress the error codes for an foreign key violation with a custom error. But this only works for the first condition. So when I put the number 99 i get the erro