MIOLO20
Carregando...
Procurando...
Nenhuma entrada encontrada
mexception.class
Ir para a documentação deste ficheiro.
1<?php
2
3class 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
39{
40}
41
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
53{
54 public function __construct($msg)
55 {
56 parent::__construct();
57 $this->message = $msg;
58 }
59}
60
62{
63 public function __construct($msg)
64 {
65 parent::__construct();
66 $this->message = $msg;
67 }
68}
69
71{
72 public function __construct($msg)
73 {
74 parent::__construct();
75 $this->message = _M('No Data Found!') . ($msg ? $msg : '');
76 }
77}
78
80{
81 public function __construct($msg)
82 {
83 parent::__construct();
84 $this->message = $msg;
85 }
86}
87
89{
90 public function __construct($msg)
91 {
92 parent::__construct();
93 $this->message = $msg;
94 }
95}
96
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
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
124{
125 public function __construct($op)
126 {
127 parent::__construct();
128 $this->message = _M('Error in Session: ') . $op;
129 $this->Log();
130 }
131}
132
134{
135 public function __construct($msg)
136 {
137 parent::__construct();
138 $this->message = _M('Error in getBusiness: ') . $msg;
139 $this->Log();
140 }
141}
142
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
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
165{
166 public function __construct($msg)
167 {
168 parent::__construct();
169 $this->message = $msg;
170 }
171}
172
173?>
__construct($db, $msg)
__construct($fileName, $msg='')
__construct($msg='')
__construct($fileName)
static getPreviousURL()
Definição miolo.class:1051
static isDebugMode()
Definição miolo.class:1825
static dumpString($var)
Definição mutil.class:366