]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/LRDD/extlib/XML/XRD/Loader/Exception.php
Implemented WebFinger and replaced our XRD with PEAR XML_XRD
[quix0rs-gnu-social.git] / plugins / LRDD / extlib / XML / XRD / Loader / Exception.php
diff --git a/plugins/LRDD/extlib/XML/XRD/Loader/Exception.php b/plugins/LRDD/extlib/XML/XRD/Loader/Exception.php
new file mode 100644 (file)
index 0000000..43b6bc8
--- /dev/null
@@ -0,0 +1,59 @@
+<?php
+/**
+ * Part of XML_XRD
+ *
+ * PHP version 5
+ *
+ * @category XML
+ * @package  XML_XRD
+ * @author   Christian Weiske <cweiske@php.net>
+ * @license  http://www.gnu.org/copyleft/lesser.html LGPL
+ * @link     http://pear.php.net/package/XML_XRD
+ */
+
+require_once 'XML/XRD/Exception.php';
+
+/**
+ * XML_XRD exception that's thrown when loading the XRD fails.
+ *
+ * @category XML
+ * @package  XML_XRD
+ * @author   Christian Weiske <cweiske@php.net>
+ * @license  http://www.gnu.org/copyleft/lesser.html LGPL
+ * @version  Release: @package_version@
+ * @link     http://pear.php.net/package/XML_XRD
+ */
+class XML_XRD_Loader_Exception extends Exception implements XML_XRD_Exception
+{
+    /**
+     * The document namespace is not the XRD 1.0 namespace
+     */
+    const DOC_NS = 10;
+
+    /**
+     * The document root element is not XRD
+     */
+    const DOC_ROOT = 11;
+
+    /**
+     * Error loading the XML|JSON file|string
+     */
+    const LOAD = 12;
+
+    /**
+     * Unsupported XRD file/string type (no loader)
+     */
+    const NO_LOADER = 13;
+
+    /**
+     * Error opening file
+     */
+    const OPEN_FILE = 14;
+
+    /**
+     * Detecting the file type failed
+     */
+    const DETECT_TYPE = 20;
+}
+
+?>
\ No newline at end of file