summaryrefslogtreecommitdiff
path: root/www/wiki/extensions/SemanticMediaWiki/src/SPARQLStore/Exception/HttpEndpointConnectionException.php
diff options
context:
space:
mode:
Diffstat (limited to 'www/wiki/extensions/SemanticMediaWiki/src/SPARQLStore/Exception/HttpEndpointConnectionException.php')
-rw-r--r--www/wiki/extensions/SemanticMediaWiki/src/SPARQLStore/Exception/HttpEndpointConnectionException.php26
1 files changed, 26 insertions, 0 deletions
diff --git a/www/wiki/extensions/SemanticMediaWiki/src/SPARQLStore/Exception/HttpEndpointConnectionException.php b/www/wiki/extensions/SemanticMediaWiki/src/SPARQLStore/Exception/HttpEndpointConnectionException.php
new file mode 100644
index 00000000..75c347c4
--- /dev/null
+++ b/www/wiki/extensions/SemanticMediaWiki/src/SPARQLStore/Exception/HttpEndpointConnectionException.php
@@ -0,0 +1,26 @@
+<?php
+
+namespace SMW\SPARQLStore\Exception;
+
+/**
+ * @ingroup Sparql
+ *
+ * @license GNU GPL v2+
+ * @since 2.1
+ *
+ * @author mwjames
+ */
+class HttpEndpointConnectionException extends \Exception {
+
+ /**
+ * @since 2.1
+ *
+ * @param string $endpoint
+ * @param integer $errorCode
+ * @param string $errorText
+ */
+ public function __construct( $endpoint, $errorCode, $errorText ) {
+ parent::__construct( "Failed to communicate to Endpoint: $endpoint\n" . "due to curl error: $errorCode ($errorText).\n" );
+ }
+
+}