Semantic MediaWiki and related extensions
Public Member Functions | Public Attributes | List of all members
SMW\SPARQLStore\Exception\BadHttpEndpointResponseException Class Reference
Inheritance diagram for SMW\SPARQLStore\Exception\BadHttpEndpointResponseException:
Inheritance graph
[legend]
Collaboration diagram for SMW\SPARQLStore\Exception\BadHttpEndpointResponseException:
Collaboration graph
[legend]

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
 

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.

GNU GPL v2+

Since
1.6
Author
Markus Krötzsch

Constructor & Destructor Documentation

◆ __construct()

SMW\SPARQLStore\Exception\BadHttpEndpointResponseException::__construct (   $errorCode,
  $queryText,
  $endpoint,
  $httpCode = '<not given>' 
)

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

Parameters
$errorCodeinteger error code as defined in this class
$queryTextstring with the original SPARQL query/update
$endpointstring URL of the endpoint
$httpCodemixed integer HTTP error code or some string to print there

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

About | General disclaimer | Privacy policy