diff options
author | Michael Vogel <icarus@dabo.de> | 2012-05-16 08:24:46 +0200 |
---|---|---|
committer | Michael Vogel <icarus@dabo.de> | 2012-05-16 08:24:46 +0200 |
commit | f2c0c40f6e488f1a8e62bda9449b28115f343cac (patch) | |
tree | ae1418141f85be49b7d8cb3d2a0e8b2a7acc4eb4 /library/langdet/Text/LanguageDetect/Exception.php | |
parent | f2e648d62fe7cafb9a55c7505687ea4d1c294778 (diff) | |
parent | a65bd73bf3f4a1e6ccfcdf0a06c70a4f1f4182ce (diff) | |
download | volse-hubzilla-f2c0c40f6e488f1a8e62bda9449b28115f343cac.tar.gz volse-hubzilla-f2c0c40f6e488f1a8e62bda9449b28115f343cac.tar.bz2 volse-hubzilla-f2c0c40f6e488f1a8e62bda9449b28115f343cac.zip |
Merge remote branch 'upstream/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; +} |