# Handling Errors When Using `mysqli`
+ **`mysqli::sql_state()`** holds the `SQLSTATE` for the most recent execution 
+ **`mysqli_sql_exception`** class provides these methods to identify the error:
  + **`getCode()`**: Returns the error code
  + **`getMessage()`**: Returns the error message 
-------------------------------------------------------------------------------
[no notes]