pub fn is_serialization_failure(err: &SqlError) -> bool
Whether err is a serialization failure (40001) or a deadlock (40P01): the transaction lost a conflict and running it again may succeed.
err
40001
40P01