Core  3.2
PHP API documentation
 All Data Structures Namespaces Files Functions Variables Pages
ErrorCodeSACC.php
Go to the documentation of this file.
1 <?php
2 /*
3  * @author Anakeen
4  * @package FDL
5 */
6 namespace {
7  /**
8  * Error codes used to checking manage user/group/role
9  * @class ErrorCodeSACC
10  * @brief List all error code for user/group/role searching
11  * @search SearchAccount
12  * @see ErrorCode
13  */
15  {
16  /**
17  * @errorCode
18  * the argument must be SearchAccount::returnAccount or SearchAccount::returnDocument
19  * @see SearchAccount::setReturnType()
20  */
21  const SACC0001 = 'Incorrect argument "%s" to return type account search';
22  /**
23  * @errorCode
24  * the argument must be valid role reference
25  * @see SearchAccount::addRoleFilter()
26  */
27  const SACC0002 = 'Unknow role "%s" to be use with account search filter';
28  /**
29  * @errorCode
30  * The slice must be a positive number or "all"
31  * @see SearchAccount::setSlice()
32  */
33  const SACC0003 = 'Incorrect slice argument %s for account search';
34  /**
35  * @errorCode
36  * The start must be a positive number or zero
37  * @see SearchAccount::setSlice()
38  */
39  const SACC0004 = 'Incorrect start argument %s for account search';
40  /**
41  * @errorCode
42  * the argument must be a valid group login
43  * @see SearchAccount::addGroupFilter()
44  */
45  const SACC0005 = 'Unknow group "%s" to be use with account search filter';
46  /**
47  * @errorCode
48  * the argument must be a valid family Id
49  * @see SearchAccount::filterFamily()
50  */
51  const SACC0006 = 'Unknow family "%s" to be use with account search filter';
52  /**
53  * @errorCode
54  * for beautifier
55  */
56  private function _bo()
57  {
58  if (true) $a = 1;
59  }
60  }
61 }
62 
63 namespace Dcp\Sacc {
64  /**
65  * @errorCode
66  * Account search exception
67  */
68  class Exception extends \Dcp\Exception
69  {
70  /**
71  * for beautifier
72  */
73  private function _bo()
74  {
75  if (true) $a = 1;
76  }
77  }
78 }
print< H1 > Check Database< i > $dbaccess</i ></H1 > $a
Definition: checklist.php:45
Exception class use exceptionCode to identifiy correctly exception.
Definition: exceptions.php:19
List all error code for user/group/role searching SearchAccount.
← centre documentaire © anakeen