Core
3.2
PHP API documentation
Main Page
Related Pages
Namespaces
Data Structures
Files
Examples
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Pages
ErrorCodeDB.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 to database query errors
9
* @class ErrorCodeDB
10
* @see ErrorCode
11
* @brief List all error code database errors
12
* @see ErrorCode
13
*/
14
class
ErrorCodeDB
15
{
16
/**
17
* @errorCode
18
* the query cannot be executed
19
*/
20
const
DB0001
=
'query error : %s'
;
21
/**
22
* @errorCode
23
* the query cannot be executed after prepare
24
*/
25
const
DB0002
=
'query error : %s'
;
26
/**
27
* @errorCode
28
* when try to create automatically DbObj Table
29
* the sqlcreate attribute if probably wrong
30
*/
31
const
DB0003
=
'Table "%s" doesn\'t exist and cannot be created : %s'
;
32
/**
33
* @errorCode
34
* when try to create automatically DbObj Table
35
* the sqlcreate attribute if probably wrong
36
*/
37
const
DB0004
=
'Table "%s" cannot be updated : %s'
;
38
/**
39
* @errorCode
40
* the query cannot be prepared
41
*/
42
const
DB0005
=
'query prepare error : %s'
;
43
/**
44
* @errorCode
45
* the prepare statement cannot be done
46
*/
47
const
DB0006
=
'preparing statement : %s'
;
48
/**
49
* @errorCode
50
* the execute statement cannot be done
51
*/
52
const
DB0007
=
'execute statement : %s'
;
53
/**
54
* @errorCode
55
* the query cannot be sent to server
56
*/
57
const
DB0008
=
'sending query : %s'
;
58
/**
59
* @errorCode missing column on table
60
*/
61
const
DB0009
=
'no auto update for "%s" table'
;
62
/**
63
* @errorCode The lock prefix is converted to a 4 bytes numbre and it is limited to 4 characters
64
* @see DbObj::lockPoint()
65
*/
66
const
DB0010
=
'The prefix lock "%s" must not exceed 4 characters'
;
67
/**
68
* @errorCode Lock is efficient only into a transaction
69
* @see DbObj::lockPoint()
70
*/
71
const
DB0011
=
'The lock "%d-%s" must be set inside a savePoint transaction'
;
72
/**
73
* @errorCode Lock identifier is not a valid int32
74
* @see DbObj::lockPoint()
75
*/
76
const
DB0012
=
'Lock identifier (%s) is not a valid int32'
;
77
/**
78
* @errorCode
79
* simple query error
80
*/
81
const
DB0100
=
'simple query error "%s" for query "%s"'
;
82
/**
83
* @errorCode
84
* database connection error
85
*/
86
const
DB0101
=
'cannot connect to "%s"'
;
87
/**
88
* @errorCode
89
* simple query error connect
90
*/
91
const
DB0102
=
'cannot connect to "%s". Simple query error "%s" for query "%s"'
;
92
/**
93
* @errorCode Vault identifier key cannot be generated
94
* @see VaultDiskStorage::getNewVaultId
95
*/
96
const
DB0103
=
'Cannot generate vault identifier'
;
97
/**
98
* @errorCode Vault identifier key must be verify if not already in use
99
* @see VaultDiskStorage::getNewVaultId
100
*/
101
const
DB0104
=
'Cannot verify vault identifier : %s'
;
102
/**
103
* @errorCode
104
* for beautifier
105
*/
106
private
function
_bo()
107
{
108
if
(
true
)
return
;
109
}
110
}
111
}
112
namespace
Dcp\Db {
113
class
Exception
extends
\Dcp\Exception
114
{
115
/**
116
* for beautifier
117
*/
118
private
function
_bo()
119
{
120
if
(
true
)
return
;
121
}
122
}
123
}
ErrorCodeDB\DB0009
const DB0009
Definition:
ErrorCodeDB.php:61
ErrorCodeDB\DB0006
const DB0006
Definition:
ErrorCodeDB.php:47
ErrorCodeDB\DB0102
const DB0102
Definition:
ErrorCodeDB.php:91
Dcp\Db\Exception
Definition:
ErrorCodeDB.php:113
ErrorCodeDB\DB0010
const DB0010
Definition:
ErrorCodeDB.php:66
Dcp\Exception
Exception class use exceptionCode to identifiy correctly exception.
Definition:
exceptions.php:19
ErrorCodeDB\DB0103
const DB0103
Definition:
ErrorCodeDB.php:96
ErrorCodeDB\DB0007
const DB0007
Definition:
ErrorCodeDB.php:52
ErrorCodeDB\DB0012
const DB0012
Definition:
ErrorCodeDB.php:76
ErrorCodeDB\DB0011
const DB0011
Definition:
ErrorCodeDB.php:71
ErrorCodeDB\DB0003
const DB0003
Definition:
ErrorCodeDB.php:31
ErrorCodeDB\DB0002
const DB0002
Definition:
ErrorCodeDB.php:25
ErrorCodeDB\DB0101
const DB0101
Definition:
ErrorCodeDB.php:86
ErrorCodeDB\DB0104
const DB0104
Definition:
ErrorCodeDB.php:101
ErrorCodeDB\DB0005
const DB0005
Definition:
ErrorCodeDB.php:42
ErrorCodeDB\DB0100
const DB0100
Definition:
ErrorCodeDB.php:81
ErrorCodeDB
List all error code database errors.
Definition:
ErrorCodeDB.php:14
ErrorCodeDB\DB0008
const DB0008
Definition:
ErrorCodeDB.php:57
ErrorCodeDB\DB0004
const DB0004
Definition:
ErrorCodeDB.php:37
ErrorCodeDB\DB0001
const DB0001
Definition:
ErrorCodeDB.php:20
← centre documentaire
© anakeen