Exception.php 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <?php
  2. /**
  3. * Part of XML_XRD
  4. *
  5. * PHP version 5
  6. *
  7. * @category XML
  8. * @package XML_XRD
  9. * @author Christian Weiske <cweiske@php.net>
  10. * @license http://www.gnu.org/copyleft/lesser.html LGPL
  11. * @link http://pear.php.net/package/XML_XRD
  12. */
  13. require_once 'XML/XRD/Exception.php';
  14. /**
  15. * XML_XRD exception that's thrown when loading the XRD fails.
  16. *
  17. * @category XML
  18. * @package XML_XRD
  19. * @author Christian Weiske <cweiske@php.net>
  20. * @license http://www.gnu.org/copyleft/lesser.html LGPL
  21. * @version Release: @package_version@
  22. * @link http://pear.php.net/package/XML_XRD
  23. */
  24. class XML_XRD_Loader_Exception extends Exception implements XML_XRD_Exception
  25. {
  26. /**
  27. * The document namespace is not the XRD 1.0 namespace
  28. */
  29. const DOC_NS = 10;
  30. /**
  31. * The document root element is not XRD
  32. */
  33. const DOC_ROOT = 11;
  34. /**
  35. * Error loading the XML|JSON file|string
  36. */
  37. const LOAD = 12;
  38. /**
  39. * Unsupported XRD file/string type (no loader)
  40. */
  41. const NO_LOADER = 13;
  42. /**
  43. * Error opening file
  44. */
  45. const OPEN_FILE = 14;
  46. /**
  47. * Detecting the file type failed
  48. */
  49. const DETECT_TYPE = 20;
  50. }
  51. ?>