diff options
author | Simon L'nu <simon.lnu@gmail.com> | 2012-05-13 18:50:04 -0400 |
---|---|---|
committer | Simon L'nu <simon.lnu@gmail.com> | 2012-05-13 18:50:04 -0400 |
commit | 39c042f4ea33abd77d6431c531b6eae72f2d7994 (patch) | |
tree | 91cef4041bbdfbc1fe08ffb08c52661d70c59f94 /library/langdet/Text/LanguageDetect/Exception.php | |
parent | f267a283b46edaf389e99ef3ea4341a5a0496aab (diff) | |
parent | 303856ce01983feec95539892a908b5d5a88f866 (diff) | |
download | volse-hubzilla-39c042f4ea33abd77d6431c531b6eae72f2d7994.tar.gz volse-hubzilla-39c042f4ea33abd77d6431c531b6eae72f2d7994.tar.bz2 volse-hubzilla-39c042f4ea33abd77d6431c531b6eae72f2d7994.zip |
Merge branch 'master', remote-tracking branch 'remotes/upstream/master'
* remotes/upstream/master:
diabook-theme: small fixes
rename get_language() to get_browser_language()
slackr drop shadows
language detection library
rev update
* master:
Diffstat (limited to 'library/langdet/Text/LanguageDetect/Exception.php')
-rw-r--r-- | library/langdet/Text/LanguageDetect/Exception.php | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/library/langdet/Text/LanguageDetect/Exception.php b/library/langdet/Text/LanguageDetect/Exception.php new file mode 100644 index 000000000..196d994f5 --- /dev/null +++ b/library/langdet/Text/LanguageDetect/Exception.php @@ -0,0 +1,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; +} |