diff options
author | Vasudev Kamath <kamathvasudev@gmail.com> | 2012-06-04 12:04:17 +0530 |
---|---|---|
committer | Vasudev Kamath <kamathvasudev@gmail.com> | 2012-06-04 12:04:17 +0530 |
commit | 12474e3c2eb21e4b5f9f6cd4b9d223f1f39bfe89 (patch) | |
tree | 49e5e7dd30e1b1263fa5a9c9921b4a59758d94bd /library/langdet/Text/LanguageDetect/Exception.php | |
parent | 3a45d4f9e0af301b8fdd4d509fc7ffe7514fb519 (diff) | |
parent | ca105f1c669950768a1f4cd6b93f471cabbc5114 (diff) | |
download | volse-hubzilla-12474e3c2eb21e4b5f9f6cd4b9d223f1f39bfe89.tar.gz volse-hubzilla-12474e3c2eb21e4b5f9f6cd4b9d223f1f39bfe89.tar.bz2 volse-hubzilla-12474e3c2eb21e4b5f9f6cd4b9d223f1f39bfe89.zip |
Merge branch 'master' of git://github.com/friendica/friendica
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; +} |