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 | |
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.
Definition at line 28 of file SMW_SparqlDatabase.php.
| SMWSparqlDatabaseError::__construct | ( | $ | errorCode, | |
| $ | queryText, | |||
| $ | endpoint, | |||
| $ | httpCode = '<not given>' | |||
| ) |
Constructor that creates an error message based on the given data.
| $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.
| const SMWSparqlDatabaseError::ERROR_MALFORMED = 1 |
Error code: malformed query.
Definition at line 31 of file SMW_SparqlDatabase.php.
Referenced by SMWSparqlDatabase::throwSparqlErrors().
| const SMWSparqlDatabaseError::ERROR_REFUSED = 2 |
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.
| const SMWSparqlDatabaseError::ERROR_OTHER = 5 |
Error code: unknown error.
Definition at line 39 of file SMW_SparqlDatabase.php.
Referenced by SMWSparqlDatabase::throwSparqlErrors().
| const SMWSparqlDatabaseError::ERROR_NOSERVICE = 6 |
Error code: required service not known.
Definition at line 41 of file SMW_SparqlDatabase.php.
Referenced by SMWSparqlDatabase4Store::doHttpPost(), SMWSparqlDatabase::doHttpPost(), SMWSparqlDatabaseVirtuoso::doUpdate(), and SMWSparqlDatabase::doUpdate().
| SMWSparqlDatabaseError::$queryText |
| SMWSparqlDatabaseError::$errorCode |
1.5.6