In my production error logs I occasionally see:
SQLSTATE[HY000]: General error: 1205 Lock wait timeout exceeded; try restarting transaction >
SQLSTATE[HY000]: General error: 1205 Lock wait timeout exceeded; try restarting transaction
If you're using JDBC, then you have the option includeInnodbStatusInDeadlockExceptions=true
https://dev.mysql.com/doc/connector-j/8.0/en/connector-j-reference-configuration-properties.html