The `QueryException` is thrown when a CRUD operation on the database returns an
error.