diff options
author | Andrew Dolgov <[email protected]> | 2013-07-31 10:30:14 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2013-07-31 10:30:17 +0400 |
commit | 6b4617970f2c25ac852daab873f5374d611d5b7e (patch) | |
tree | e7026b5c9879b7489454626aef00e3c2f04e06db /lib/languagedetect/Text/LanguageDetect/Exception.php | |
parent | f035e6dc822e3b8766d55689abff26a6bf52d404 (diff) |
add text_languagedetect to guess article language for better hyphenation
(bump schema)
Diffstat (limited to 'lib/languagedetect/Text/LanguageDetect/Exception.php')
-rw-r--r-- | lib/languagedetect/Text/LanguageDetect/Exception.php | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/lib/languagedetect/Text/LanguageDetect/Exception.php b/lib/languagedetect/Text/LanguageDetect/Exception.php new file mode 100644 index 000000000..196d994f5 --- /dev/null +++ b/lib/languagedetect/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; +} |