Class (GI Struct)

Tsparql-3.0TsparqlSparqlError

Error domain for Tracker Sparql. Errors in this domain will be from the SparqlError enumeration. See GLib.Error for more information on error domains.

Hierarchy (View Summary)

Index

Constructors

Properties

$gtype: GType<GLib.Error>
CONSTRAINT: number

Subject is not in the domain of a property or trying to set multiple values for a single valued property.

CORRUPT: number

A soft/hard corruption was found in the database during operation. If this error is obtained during regular operations with an existing SparqlConnection, the corruption was newly found. This event will be persistently recorded so that the SparqlConnection.new_async constructor (or its synchronous variant) will perform database repair attempts. If this error is obtained during one of those constructors, the database could not be repaired automatically and data loss is unavoidable. It is left to the discretion of the API user to set up the appropriate fallbacks in this situation, to replace the database and recover from the error. See SparqlConnection.new documentation for more information on corruption handling.

INCOMPLETE_PROPERTY_DEFINITION: number

The property is not completely defined.

INTERNAL: number

Internal error.

LAST: number

The total number of error codes.

MISSING_LAST_MODIFIED_HEADER: number

The ontology doesn't contain nrl:lastModified header

NO_SPACE: number

There was no disk space available to perform the request.

ONTOLOGY_NOT_FOUND: number

The specified ontology wasn't found.

OPEN_ERROR: number

Problem encountered while opening the database.

PARSE: number

Error parsing the SPARQL string.

QUERY_FAILED: number

Problem while executing the query.

TYPE: number

Type constraint failed when trying to insert data.

UNKNOWN_CLASS: number

Unknown class.

UNKNOWN_GRAPH: number

Unknown graph.

UNKNOWN_PROPERTY: number

Unknown property.

UNSUPPORTED: number

Unsupported feature or method.

Properties - Inherited from GLib

code: number
domain: number
message: string
stack: string

Methods

Methods - Inherited from GLib

  • Returns true if error matches domain and code, false otherwise. In particular, when error is null, false will be returned.

    If domain contains a FAILED (or otherwise generic) error code, you should generally not check for it explicitly, but should instead treat any not-explicitly-recognized error code as being equivalent to the FAILED code. This way, if the domain is extended in the future to provide a more specific error code for a certain case, your code will still work.

    Parameters

    • domain: number | (new (...args: any[]) => GLib.Error)

      an error domain

    • code: number

      an error code

    Returns boolean

    whether error has domain and code

  • This function registers an extended GLib.Error domain. error_type_name will be duplicated. Otherwise does the same as g_error_domain_register_static().

    Parameters

    • error_type_name: string

      string to create a GLib.Quark from

    • error_type_private_size: number

      size of the private error data in bytes

    • error_type_init: ErrorInitFunc

      function initializing fields of the private error data

    • error_type_copy: ErrorCopyFunc

      function copying fields of the private error data

    • error_type_clear: ErrorClearFunc

      function freeing fields of the private error data

    Returns number

  • This function registers an extended GLib.Error domain.

    error_type_name should not be freed. error_type_private_size must be greater than 0.

    error_type_init receives an initialized GLib.Error and should then initialize the private data.

    error_type_copy is a function that receives both original and a copy GLib.Error and should copy the fields of the private error data. The standard GLib.Error fields are already handled.

    error_type_clear receives the pointer to the error, and it should free the fields of the private error data. It should not free the struct itself though.

    Normally, it is better to use G_DEFINE_EXTENDED_ERROR(), as it already takes care of passing valid information to this function.

    Parameters

    • error_type_name: string

      static string to create a GLib.Quark from

    • error_type_private_size: number

      size of the private error data in bytes

    • error_type_init: ErrorInitFunc

      function initializing fields of the private error data

    • error_type_copy: ErrorCopyFunc

      function copying fields of the private error data

    • error_type_clear: ErrorClearFunc

      function freeing fields of the private error data

    Returns number