JDatabase::getErrorMsg

Gets the error message from the database connection.