Subversion Repositories Applications.framework

Rev

Rev 192 | Rev 216 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 192 Rev 195
Line 10... Line 10...
10
 * @package   Framework
10
 * @package   Framework
11
 * @author	aurelien <aurelien@tela-botanica.org>
11
 * @author	aurelien <aurelien@tela-botanica.org>
12
 * @copyright 2009 Tela-Botanica
12
 * @copyright 2009 Tela-Botanica
13
 * @license   http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt Licence CECILL
13
 * @license   http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt Licence CECILL
14
 * @license   http://www.gnu.org/licenses/gpl.html Licence GNU-GPL
14
 * @license   http://www.gnu.org/licenses/gpl.html Licence GNU-GPL
15
 * @version   SVN: $$Id: GestionnaireException.php 192 2010-04-29 15:36:52Z jpm $$
15
 * @version   SVN: $$Id: GestionnaireException.php 195 2010-05-19 13:07:36Z jpm $$
16
 * @link	  /doc/framework/
16
 * @link	  /doc/framework/
17
 *
17
 *
18
 */
18
 */
19
class GestionnaireException {
19
class GestionnaireException {
Line 113... Line 113...
113
					if (self::getContexte()) {
113
					if (self::getContexte()) {
114
						$retour .= 'Contexte : '."\n".print_r($e->getTraceAsString(), true)."\n";
114
						$retour .= 'Contexte : '."\n".print_r($e->getTraceAsString(), true)."\n";
115
					}
115
					}
116
					break;
116
					break;
117
				default:
117
				default:
118
					$retour .= '<pre class="debogage">'."\n";
118
					$retour .= '<div class="debogage">'."\n";
119
					$retour .= $e->getMessage()."\n";
119
					$retour .= $e->getMessage()."\n";
120
					$retour .= '<span class="debogage_fichier">'.'Fichier : '.$e->getFile().'</span>'."\n";
120
					$retour .= '<span class="debogage_fichier">'.'Fichier : '.$e->getFile().'</span>'."\n";
121
					$retour .= '<span class="debogage_ligne">'.'Ligne : '.$e->getLine().'</span>'."\n";
121
					$retour .= '<span class="debogage_ligne">'.'Ligne : '.$e->getLine().'</span>'."\n";
122
					$retour .= '</pre>'."\n";
-
 
123
 
-
 
124
					if (self::getContexte()) {
122
					if (self::getContexte()) {
125
						$retour .= '<pre>'."\n";
123
						$retour .= '<pre>'."\n";
126
						$retour .= '<strong>Contexte : </strong>'."\n".print_r($e->getTraceAsString(), true)."\n";
124
						$retour .= '<strong>Contexte : </strong>'."\n".print_r($e->getTraceAsString(), true)."\n";
127
						$retour .= '</pre>'."\n";
125
						$retour .= '</pre>'."\n";
128
					}
126
					}
-
 
127
					$retour .= '</div>'."\n";
129
			}
128
			}
130
			// Nous vidons le tableau des exceptions au fur et à mesure
129
			// Nous vidons le tableau des exceptions au fur et à mesure
131
			unset(self::$exceptions[$cle]);
130
			unset(self::$exceptions[$cle]);
132
		}
131
		}
133
		return $retour;
132
		return $retour;