Semantic MediaWiki and related extensions
Public Member Functions | List of all members
SMW\SPARQLStore\BadHttpResponseMapper Class Reference

Public Member Functions

 __construct (HttpRequest $httpRequest)
 
 mapResponseToHttpRequest ($endpoint, $sparql)
 

Detailed Description

Post-processing for a bad inbound responses

GNU GPL v2+

Since
2.0
Author
Markus Krötzsch
mwjames

Constructor & Destructor Documentation

SMW\SPARQLStore\BadHttpResponseMapper::__construct ( HttpRequest  $httpRequest)
Since
2.0
Parameters
HttpRequest$httpRequest

Member Function Documentation

SMW\SPARQLStore\BadHttpResponseMapper::mapResponseToHttpRequest (   $endpoint,
  $sparql 
)

Either throw a suitable exception or fall through if the error should be handled gracefully. It is attempted to throw exceptions for all errors that can generally be prevented by proper coding or configuration (e.g. query syntax errors), and to be silent on all errors that might be caused by network issues or temporary overloading of the server. In this case, calling methods rather return something that helps to make the best out of the situation.

Since
2.0
Parameters
$endpointstring URL of endpoint that was used
$sparqlstring query that caused the problem
Exceptions
Exception
SparqlDatabaseException

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