I'm using mysqli prepared statements in an OOP manner. Everything is working as intended, but I can't seem to find any documentation on how to detect and then throw an exception during a while loop. This how my code stands at the moment and it works perfectly.I'm using mysqli prepared statements in an OOP