domexception.h 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /*
  2. +----------------------------------------------------------------------+
  3. | Copyright (c) The PHP Group |
  4. +----------------------------------------------------------------------+
  5. | This source file is subject to version 3.01 of the PHP license, |
  6. | that is bundled with this package in the file LICENSE, and is |
  7. | available through the world-wide-web at the following url: |
  8. | https://www.php.net/license/3_01.txt |
  9. | If you did not receive a copy of the PHP license and are unable to |
  10. | obtain it through the world-wide-web, please send a note to |
  11. | license@php.net so we can mail you a copy immediately. |
  12. +----------------------------------------------------------------------+
  13. | Authors: Christian Stocker <chregu@php.net> |
  14. | Rob Richards <rrichards@php.net> |
  15. +----------------------------------------------------------------------+
  16. */
  17. #ifndef DOM_EXCEPTION_H
  18. #define DOM_EXCEPTION_H
  19. /* domexception errors */
  20. typedef enum {
  21. /* PHP_ERR is non-spec code for PHP errors: */
  22. PHP_ERR = 0,
  23. INDEX_SIZE_ERR = 1,
  24. DOMSTRING_SIZE_ERR = 2,
  25. HIERARCHY_REQUEST_ERR = 3,
  26. WRONG_DOCUMENT_ERR = 4,
  27. INVALID_CHARACTER_ERR = 5,
  28. NO_DATA_ALLOWED_ERR = 6,
  29. NO_MODIFICATION_ALLOWED_ERR = 7,
  30. NOT_FOUND_ERR = 8,
  31. NOT_SUPPORTED_ERR = 9,
  32. INUSE_ATTRIBUTE_ERR = 10,
  33. /* Introduced in DOM Level 2: */
  34. INVALID_STATE_ERR = 11,
  35. /* Introduced in DOM Level 2: */
  36. SYNTAX_ERR = 12,
  37. /* Introduced in DOM Level 2: */
  38. INVALID_MODIFICATION_ERR = 13,
  39. /* Introduced in DOM Level 2: */
  40. NAMESPACE_ERR = 14,
  41. /* Introduced in DOM Level 2: */
  42. INVALID_ACCESS_ERR = 15,
  43. /* Introduced in DOM Level 3: */
  44. VALIDATION_ERR = 16
  45. } dom_exception_code;
  46. #endif /* DOM_EXCEPTION_H */