Semantic MediaWiki and related extensions
|
Public Member Functions | |
__construct ( $errorCode, $queryText, $endpoint, $httpCode='< not given >') | |
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 | |
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.
GNU GPL v2+
SMW\SPARQLStore\Exception\BadHttpEndpointResponseException::__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 |