aboutsummaryrefslogtreecommitdiffhomepage
path: root/inc/3rdparty/libraries/language-detect/LanguageDetect/Exception.php
blob: 196d994f5cb712fa7e7105e2a994705ce476f70d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<?php
class Text_LanguageDetect_Exception extends Exception
{
    /**
     * Database file could not be found
     */
    const DB_NOT_FOUND = 10;

    /**
     * Database file found, but not readable
     */
    const DB_NOT_READABLE = 11;

    /**
     * Database file is empty
     */
    const DB_EMPTY = 12;

    /**
     * Database contents is not a PHP array
     */
    const DB_NOT_ARRAY = 13;

    /**
     * Magic quotes are activated
     */
    const MAGIC_QUOTES = 14;


    /**
     * Parameter of invalid type passed to method
     */
    const PARAM_TYPE = 20;

    /**
     * Character in parameter is invalid
     */
    const INVALID_CHAR = 21;


    /**
     * Language is not in the database
     */
    const UNKNOWN_LANGUAGE = 30;


    /**
     * Error during block detection
     */
    const BLOCK_DETECTION = 40;


    /**
     * Error while clustering languages
     */
    const NO_HIGHEST_KEY = 50;
}