3 * Part of Text_LanguageDetect
8 * @package Text_LanguageDetect
9 * @author Nicholas Pisarro <infinityminusnine+pear@gmail.com>
10 * @license BSD http://www.opensource.org/licenses/bsd-license.php
11 * @link http://pear.php.net/package/Text_LanguageDetect/
15 * Part of the PEAR language detection package
20 * @package Text_LanguageDetect
21 * @author Nicholas Pisarro <infinityminusnine+pear@gmail.com>
22 * @license BSD http://www.opensource.org/licenses/bsd-license.php
23 * @link http://pear.php.net/package/Text_LanguageDetect/
24 * @link http://langdetect.blogspot.com/
26 class Text_LanguageDetect_Exception extends Exception
29 * Database file could not be found
31 const DB_NOT_FOUND = 10;
34 * Database file found, but not readable
36 const DB_NOT_READABLE = 11;
39 * Database file is empty
44 * Database contents is not a PHP array
46 const DB_NOT_ARRAY = 13;
49 * Magic quotes are activated
51 const MAGIC_QUOTES = 14;
55 * Parameter of invalid type passed to method
57 const PARAM_TYPE = 20;
60 * Character in parameter is invalid
62 const INVALID_CHAR = 21;
66 * Language is not in the database
68 const UNKNOWN_LANGUAGE = 30;
72 * Error during block detection
74 const BLOCK_DETECTION = 40;
78 * Error while clustering languages
80 const NO_HIGHEST_KEY = 50;