gnu-social/plugins/LRDD/extlib/XML/XRD/Loader/Exception.php
Mikael Nordfeldth a0e107f17f Implemented WebFinger and replaced our XRD with PEAR XML_XRD
New plugins:
* LRDD
    LRDD implements client-side RFC6415 and RFC7033 resource descriptor
    discovery procedures. I.e. LRDD, host-meta and WebFinger stuff.

    OStatus and OpenID now depend on the LRDD plugin (XML_XRD).

* WebFinger
    This plugin implements the server-side of RFC6415 and RFC7033. Note:
    WebFinger technically doesn't handle XRD, but we serve both that and
    JRD (JSON Resource Descriptor), depending on Accept header and one
    ugly hack to check for old StatusNet installations.

    WebFinger depends on LRDD.

We might make this even prettier by using Net_WebFinger, but it is not
currently RFC7033 compliant (no /.well-known/webfinger resource GETs).

Disabling the WebFinger plugin would effectively render your site non-
federated (which might be desired on a private site).

Disabling the LRDD plugin would make your site unable to do modern web
URI lookups (making life just a little bit harder).
2013-09-30 22:04:52 +02:00

59 lines
1.2 KiB
PHP

<?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;
}
?>