]> git.wh0rd.org - tt-rss.git/blame - plugins/af_lang_detect/languagedetect/Text/LanguageDetect/Exception.php
Update af_lang_detect plugin with changes from upstream
[tt-rss.git] / plugins / af_lang_detect / languagedetect / Text / LanguageDetect / Exception.php
CommitLineData
6b461797 1<?php
31b40448 2/**
3 * Part of Text_LanguageDetect
4 *
5 * PHP version 5
6 *
7 * @category Text
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/
12 */
13
14/**
15 * Part of the PEAR language detection package
16 *
17 * PHP version 5
18 *
19 * @category Text
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/
25 */
6b461797
AD
26class Text_LanguageDetect_Exception extends Exception
27{
28 /**
29 * Database file could not be found
30 */
31 const DB_NOT_FOUND = 10;
32
33 /**
34 * Database file found, but not readable
35 */
36 const DB_NOT_READABLE = 11;
37
38 /**
39 * Database file is empty
40 */
41 const DB_EMPTY = 12;
42
43 /**
44 * Database contents is not a PHP array
45 */
46 const DB_NOT_ARRAY = 13;
47
48 /**
49 * Magic quotes are activated
50 */
51 const MAGIC_QUOTES = 14;
52
53
54 /**
55 * Parameter of invalid type passed to method
56 */
57 const PARAM_TYPE = 20;
58
59 /**
60 * Character in parameter is invalid
61 */
62 const INVALID_CHAR = 21;
63
64
65 /**
66 * Language is not in the database
67 */
68 const UNKNOWN_LANGUAGE = 30;
69
70
71 /**
72 * Error during block detection
73 */
74 const BLOCK_DETECTION = 40;
75
76
77 /**
78 * Error while clustering languages
79 */
80 const NO_HIGHEST_KEY = 50;
81}