summaryrefslogtreecommitdiff
path: root/src/libtracker-sparql/tracker-error.c
Commit message (Collapse)AuthorAgeFilesLines
* libtracker-sparql: Update library API documentationCarlos Garnacho2023-02-271-5/+0
| | | | | | Port references and links to the gi-docgen format, and while at it flesh out some more documentation and adjust formatting to look better with the gi-docgen templates.
* libtracker-sparql: Do not use volatile to register DBus errorsCarlos Garnacho2023-02-271-6/+7
| | | | | The documentation of g_dbus_error_register_error_domain() says we should not use one.
* libtracker-sparql: Propagate corruption errors upCarlos Garnacho2023-01-231-0/+2
| | | | | | | | | | | | Right now the handling of those is somewhat inconsistent, we loudly warn, but simply return FALSE from our stmt_step() function without setting an error. Fortunately, the most common reason for those errors has been the soft corruption resulting from FTS index corruption, so continuing despite the error was alright. Propagate these error situations properly through a new TRACKER_SPARQL_ERROR_CORRUPT error code, so that callers can fail, rollback, or otherwise react upon.
* libtracker-sparql: Move libtracker-data to libtracker-sparql/coreCarlos Garnacho2022-04-031-2/+3
| | | | | | | We want to stop making this a separate static library, but internal to libtracker-sparql. As a first step, move it into libtracker-sparql and use a cooler yet more honest name, this really is the core of our SPARQL and RDF storage implementation.
* libtracker-sparql: Add specific error code for incomplete propertiesCarlos Garnacho2021-10-051-0/+1
| | | | | Add a new error code for this specific error situation when parsing the database ontology. Based on code by Abanoub Ghadban <abanoub.gdb@gmail.com>.
* libtracker-sparql: Add specific error code for missing nrl:lastModifiedCarlos Garnacho2021-10-051-0/+1
| | | | | Add a new error code for this specific error situation when parsing the database ontology. Based on code by Abanoub Ghadban <abanoub.gdb@gmail.com>.
* libtracker-sparql: Add missing doc piecesCarlos Garnacho2021-08-261-0/+5
| | | | Necessary to put things together nicely in hotdoc.
* libtracker-sparql: Minor code refactorCarlos Garnacho2021-03-261-3/+1
| | | | | | | | The error->domain checks are mutually exclusive, so do this in if/else branches instead of separate ifs. This does not change functionality, just made to help readability and coverity. CID: #1501115
* libtracker-data: Add internal error code for failed constraintsCarlos Garnacho2020-12-011-0/+1
| | | | | And add the missing plumbing for TRACKER_SPARQL_ERROR_CONSTRAINT to be a thing.
* libtracker-sparql: Make GDBusErrorEntry array privateCarlos Garnacho2020-08-101-0/+16
| | | | This shouldn't be public, we already register the DBus error strings.
* libtracker-sparql: Don't expose internal db interface errorsSam Thursfield2020-08-101-0/+86
We should not return TrackerDBInterfaceError, from the internal libtracker-data library, from public functions in libtracker-sparql. This problem is noticable as we register D-Bus error codes only for the public TrackerSparqlError type. Before, apps would show error messages like this: GDBus.Error:org.gtk.GDBus.UnmappedGError.Quark._tracker_2ddb_2dinterface_2derror_2dquark.Code0: example error message After this patch, the error is: GDBus.Error:org.freedesktop.Tracker.Error.QueryFailed: example error message