Specify the message

The message that mi_db_error_raise() passes to an exception callback can be either of the following types:
  • A literal message, which you provide as the third argument to mi_db_error_raise()
  • A custom message that is associated with a SQLSTATE value, which you provide as the third argument to mi_db_error_raise()