SMWSparqlDatabaseError Class Reference
[SWMSparql]

Class to escalate SPARQL query errors to the interface. More...

List of all members.

Public Member Functions

 __construct ($errorCode, $queryText, $endpoint, $httpCode= '< not given >')
 Constructor that creates an error message based on the given data.

Public Attributes

const ERROR_MALFORMED = 1
 Error code: malformed query.
const ERROR_REFUSED = 2
 Error code: service refused to handle the request.
const ERROR_GRAPH_NOEXISTS = 3
 Error code: the query required a graph that does not exist.
const ERROR_GRAPH_EXISTS = 4
 Error code: some existing graph should not exist to run this query.
const ERROR_OTHER = 5
 Error code: unknown error.
const ERROR_NOSERVICE = 6
 Error code: required service not known.
 $queryText
 $errorCode


Detailed Description

Class to escalate SPARQL query errors to the interface.

We only do this for malformed queries, permission issues, etc. Connection problems are usually ignored so as to keep the wiki running even if the SPARQL backend is down.

Since:
1.6

Definition at line 28 of file SMW_SparqlDatabase.php.


Constructor & Destructor Documentation

SMWSparqlDatabaseError::__construct ( errorCode,
queryText,
endpoint,
httpCode = '<not given>' 
)

Constructor that creates an error message based on the given data.

Parameters:
$errorCode integer error code as defined in this class
$queryText string with the original SPARQL query/update
$endpoint string URL of the endpoint
$httpCode mixed integer HTTP error code or some string to print there

Definition at line 62 of file SMW_SparqlDatabase.php.

References $errorCode, and $queryText.


Member Data Documentation

Error code: malformed query.

Definition at line 31 of file SMW_SparqlDatabase.php.

Referenced by SMWSparqlDatabase::throwSparqlErrors().

Error code: service refused to handle the request.

Definition at line 33 of file SMW_SparqlDatabase.php.

Referenced by SMWSparqlDatabase::throwSparqlErrors().

Error code: the query required a graph that does not exist.

Definition at line 35 of file SMW_SparqlDatabase.php.

Error code: some existing graph should not exist to run this query.

Definition at line 37 of file SMW_SparqlDatabase.php.

Error code: unknown error.

Definition at line 39 of file SMW_SparqlDatabase.php.

Referenced by SMWSparqlDatabase::throwSparqlErrors().

SMWSparqlDatabaseError::$queryText

Definition at line 47 of file SMW_SparqlDatabase.php.

Referenced by __construct().

SMWSparqlDatabaseError::$errorCode

Definition at line 52 of file SMW_SparqlDatabase.php.

Referenced by __construct().


The documentation for this class was generated from the following file:

Generated on Sun Mar 18 07:15:43 2012 for Semantic MediaWiki by  doxygen 1.5.6