Exception.php 932 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <?php
  2. class Text_LanguageDetect_Exception extends Exception
  3. {
  4. /**
  5. * Database file could not be found
  6. */
  7. const DB_NOT_FOUND = 10;
  8. /**
  9. * Database file found, but not readable
  10. */
  11. const DB_NOT_READABLE = 11;
  12. /**
  13. * Database file is empty
  14. */
  15. const DB_EMPTY = 12;
  16. /**
  17. * Database contents is not a PHP array
  18. */
  19. const DB_NOT_ARRAY = 13;
  20. /**
  21. * Magic quotes are activated
  22. */
  23. const MAGIC_QUOTES = 14;
  24. /**
  25. * Parameter of invalid type passed to method
  26. */
  27. const PARAM_TYPE = 20;
  28. /**
  29. * Character in parameter is invalid
  30. */
  31. const INVALID_CHAR = 21;
  32. /**
  33. * Language is not in the database
  34. */
  35. const UNKNOWN_LANGUAGE = 30;
  36. /**
  37. * Error during block detection
  38. */
  39. const BLOCK_DETECTION = 40;
  40. /**
  41. * Error while clustering languages
  42. */
  43. const NO_HIGHEST_KEY = 50;
  44. }