Core  3.2
PHP API documentation
 All Data Structures Namespaces Files Functions Variables Pages
ErrorCodeCORE.php
Go to the documentation of this file.
1 <?php
2 /*
3  * @author Anakeen
4  * @package FDL
5 */
6 namespace {
7  /**
8  * global Error Code
9  * @class ErrorCodeCORE
10  * @brief List all error code for user/group/tole mamnagement
11  * @see ErrorCode
12  */
14  {
15  /**
16  * @errorCode Action::exitError is called
17  */
18  const CORE0001 = '%s';
19  /**
20  * @errorCode Api Usage error
21  */
22  const CORE0002 = '%s';
23  /**
24  * @errorCode Api Usage help
25  */
26  const CORE0003 = '%s';
27  /**
28  * @errorCode application name is not declared
29  */
30  const CORE0004 = 'Fail to find application %s';
31  /**
32  * @errorCode action name name is not declared for application
33  */
34  const CORE0005 = 'Action "%s" not declared for application "%s" (#%d)';
35  /**
36  * @errorCode action name name is not declared for application
37  */
38  const CORE0006 = "Access deny to action \"%s\" [%s].\n Need \"%s\" Acl for \"%s\" user";
39  /**
40  * @errorCode application name is not available (property available is N)
41  */
42  const CORE0007 = 'Unavailable application %s';
43  /**
44  * @errorCode action name is not available for application (property available is N)
45  */
46  const CORE0008 = 'Action "%s" not available for application "%s"';
47  /**
48  * @errorCode action from an admin application is launched from non admin mode
49  */
50  const CORE0009 = 'Action "%s" [%s] from application "%s" [%s] must be run in admin mode';
51  /**
52  * @errorCode Guest acess is not allowed (see CORE_ALLOW_GUEST)
53  */
54  const CORE0010 = 'Guest access not allowed';
55  /**
56  * @errorCode The locale is not supported by the operating system
57  */
58  const CORE0011 = "Locale '%s' is not supported by the operating system";
59  /**
60  * @errorCode Access forbidden to action
61  */
62  const CORE0012 = "Access deny : %s";
63  /**
64  * @errorCode Trying to access a non-existing user account
65  */
66  const CORE0013 = "Error : User [%s] doesn't exists";
67  /**
68  * @errorCode Trying to access a desactivated user account
69  */
70  const CORE0014 = "Error : User account [%s] is desactivated";
71  /**
72  * @errorCode
73  * for beautifier
74  */
75  private function _bo()
76  {
77  if (true) $a = 1;
78  }
79  }
80 }
81 namespace Dcp\Core {
82  class Exception extends \Dcp\Exception
83  {
84  /**
85  * for beautifier
86  */
87  private function _bo()
88  {
89  if (true) $a = 1;
90  }
91  }
92 }
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/tole mamnagement.
← centre documentaire © anakeen