Core  3.2
PHP API documentation
 All Data Structures Namespaces Files Functions Variables Pages
ErrorCodeSearchDoc.php
Go to the documentation of this file.
1 <?php
2 /*
3  * @author Anakeen
4  * @package FDL
5 */
6 namespace {
7  /**
8  * Errors code used by searchDoc class
9  * @class ErrorCodeSD
10  * @see ErrorCode
11  * @brief List all error code for searchDoc class
12  * @see SearchDoc
13  */
15  {
16  /**
17  * @errorCode the join must be conform to syntax
18  *
19  */
20  const SD0001 = 'join syntax error : %s';
21  /**
22  * @errorCode only and, or operator allowed
23  *
24  */
25  const SD0002 = 'general filter: Unknown operator %s : %s';
26  /**
27  * @errorCode all parenthesis must be closes
28  *
29  */
30  const SD0003 = 'general filter: unbalanced parenthesis : %s';
31  /**
32  * @errorCode error in syntax
33  *
34  */
35  const SD0004 = 'general filter: check syntax : %s';
36  /**
37  * @errorCode when use DocSearch::setRecursiveSearch()
38  *
39  */
40  const SD0005 = 'recursive search: cannot create temporary search : %s';
41  /**
42  * @errorCode when use DocSearch::setRecursiveFolderLevel()
43  *
44  */
45  const SD0006 = 'recursive search: level depth must be integer : %s';
46  /**
47  * Only words can be use in fulltext not symbol or punctauation
48  * @errorCode when use DocSearch::addGeneralFilter()
49  *
50  */
51  const SD0007 = 'general filter: words not supported : "%s"';
52  /**
53  * Searching on a "Specialized search" and specifying additional filters is not supported
54  * @errorCode When setting a "Specialized search" collection with useCollection() and adding filters with addFilter()
55  */
56  const SD0008 = 'Searching on a "Specialized search" collection and specifying additional filters is not supported';
57  /**
58  * for beautifier
59  */
60  private function _bo()
61  {
62  if (true) return;
63  }
64  }
65 }
66 
67 namespace Dcp\SearchDoc {
68  class Exception extends \Dcp\Exception
69  {
70  /**
71  * for beautifier
72  */
73  private function _bo()
74  {
75  if (true) return;
76  }
77  }
78 }
List all error code for searchDoc class.
Exception class use exceptionCode to identifiy correctly exception.
Definition: exceptions.php:19
← centre documentaire © anakeen