MIOLO20
Carregando...
Procurando...
Nenhuma entrada encontrada
mexception.class
Ir para a documentação deste ficheiro.
1
<?php
2
3
class
EMioloException
extends
Exception
4
{
5
public
$goTo
;
6
protected
$manager
;
7
8
public
function
__construct
()
9
{
10
global
$MIOLO
;
11
12
$this->manager =
$MIOLO
;
13
14
if
( $this->manager->history )
15
{
16
$this->goTo = $this->manager->history->Back(
'action'
);
17
}
18
else
19
{
20
$this->goTo =
MIOLO::getPreviousURL
();
21
}
22
}
23
24
public
function
__destruct
()
25
{
26
if
(
MIOLO::isDebugMode
() )
27
{
28
MUtil::dumpString
($this->getTraceAsString());
29
}
30
}
31
32
public
function
Log
()
33
{
34
$this->manager->LogError($this->message);
35
}
36
}
37
38
class
EInOutException
extends
EMioloException
39
{
40
}
41
42
class
EDatabaseException
extends
EMioloException
43
{
44
public
function
__construct
($db, $msg)
45
{
46
parent::__construct();
47
$this->message = _M(
'Error in Database [@1]: @2'
,
'miolo'
, $db, $msg);
48
$this->
Log
();
49
}
50
}
51
52
class
EDatabaseExecException
extends
EMioloException
53
{
54
public
function
__construct
($msg)
55
{
56
parent::__construct();
57
$this->message = $msg;
58
}
59
}
60
61
class
EDatabaseQueryException
extends
EMioloException
62
{
63
public
function
__construct
($msg)
64
{
65
parent::__construct();
66
$this->message = $msg;
67
}
68
}
69
70
class
EDataNotFoundException
extends
EMioloException
71
{
72
public
function
__construct
($msg)
73
{
74
parent::__construct();
75
$this->message = _M(
'No Data Found!'
) . ($msg ? $msg :
''
);
76
}
77
}
78
79
class
EDatabaseTransactionException
extends
EMioloException
80
{
81
public
function
__construct
($msg)
82
{
83
parent::__construct();
84
$this->message = $msg;
85
}
86
}
87
88
class
EControlException
extends
EMioloException
89
{
90
public
function
__construct
($msg)
91
{
92
parent::__construct();
93
$this->message = $msg;
94
}
95
}
96
97
class
EUsesException
extends
EInOutException
98
{
99
public
function
__construct
($fileName)
100
{
101
parent::__construct();
102
$this->message = _M(
"File [@1] not found by Uses!"
,
'miolo'
, $fileName);
103
104
if
(
MIOLO::isDebugMode
() )
105
{
106
$this->message .=
'<pre>'
. $this->getTraceAsString() .
'</pre>'
;
107
}
108
109
$this->
Log
();
110
}
111
}
112
113
class
EFileNotFoundException
extends
EInOutException
114
{
115
public
function
__construct
($fileName, $msg =
''
)
116
{
117
parent::__construct();
118
$this->message = _M(
'@1 File not found: @2'
,
'miolo'
,$msg, $fileName);
119
$this->
Log
();
120
}
121
}
122
123
class
ESessionException
extends
EMioloException
124
{
125
public
function
__construct
($op)
126
{
127
parent::__construct();
128
$this->message = _M(
'Error in Session: '
) . $op;
129
$this->
Log
();
130
}
131
}
132
133
class
EBusinessException
extends
EMioloException
134
{
135
public
function
__construct
($msg)
136
{
137
parent::__construct();
138
$this->message = _M(
'Error in getBusiness: '
) . $msg;
139
$this->
Log
();
140
}
141
}
142
143
class
ETimeOutException
extends
EMioloException
144
{
145
public
function
__construct
($msg=
''
)
146
{
147
parent::__construct();
148
$this->message = _M(
'Session finished by timeout.'
) . $msg;
149
$this->
Log
();
150
}
151
}
152
153
class
ELoginException
extends
EMioloException
154
{
155
public
function
__construct
($msg=
''
)
156
{
157
parent::__construct();
158
$this->message = _M($msg);
159
$this->goTo = $this->manager->getActionURL($this->manager->getConf(
'login.module'
),
'login'
);
//$this->manager->GetConf('home.url');
160
$this->
Log
();
161
}
162
}
163
164
class
ESecurityException
extends
EMioloException
165
{
166
public
function
__construct
($msg)
167
{
168
parent::__construct();
169
$this->message = $msg;
170
}
171
}
172
173
?>
EBusinessException
Definição
mexception.class:134
EBusinessException\__construct
__construct($msg)
Definição
mexception.class:135
EControlException
Definição
mexception.class:89
EControlException\__construct
__construct($msg)
Definição
mexception.class:90
EDataNotFoundException
Definição
mexception.class:71
EDataNotFoundException\__construct
__construct($msg)
Definição
mexception.class:72
EDatabaseException
Definição
mexception.class:43
EDatabaseException\__construct
__construct($db, $msg)
Definição
mexception.class:44
EDatabaseExecException
Definição
mexception.class:53
EDatabaseExecException\__construct
__construct($msg)
Definição
mexception.class:54
EDatabaseQueryException
Definição
mexception.class:62
EDatabaseQueryException\__construct
__construct($msg)
Definição
mexception.class:63
EDatabaseTransactionException
Definição
mexception.class:80
EDatabaseTransactionException\__construct
__construct($msg)
Definição
mexception.class:81
EFileNotFoundException
Definição
mexception.class:114
EFileNotFoundException\__construct
__construct($fileName, $msg='')
Definição
mexception.class:115
EInOutException
Definição
mexception.class:39
ELoginException
Definição
mexception.class:154
ELoginException\__construct
__construct($msg='')
Definição
mexception.class:155
EMioloException
Definição
mexception.class:4
EMioloException\__construct
__construct()
Definição
mexception.class:8
EMioloException\$goTo
$goTo
Definição
mexception.class:5
EMioloException\__destruct
__destruct()
Definição
mexception.class:24
EMioloException\$manager
$manager
Definição
mexception.class:6
EMioloException\Log
Log()
Definição
mexception.class:32
ESecurityException
Definição
mexception.class:165
ESecurityException\__construct
__construct($msg)
Definição
mexception.class:166
ESessionException
Definição
mexception.class:124
ESessionException\__construct
__construct($op)
Definição
mexception.class:125
ETimeOutException
Definição
mexception.class:144
ETimeOutException\__construct
__construct($msg='')
Definição
mexception.class:145
EUsesException
Definição
mexception.class:98
EUsesException\__construct
__construct($fileName)
Definição
mexception.class:99
MIOLO\getPreviousURL
static getPreviousURL()
Definição
miolo.class:1051
MIOLO\isDebugMode
static isDebugMode()
Definição
miolo.class:1825
MUtil\dumpString
static dumpString($var)
Definição
mutil.class:366
$MIOLO
$MIOLO
Definição
mdatetimefield.class:25
classes
flow
mexception.class
Gerado por
1.10.0