1: <?php
2: 3: 4: 5: 6: 7: 8: 9: 10: 11:
12:
13: 14: 15: 16: 17: 18: 19: 20:
21: class Image_Exception extends Util_ExceptionHandler
22: {
23: public function __construct($msg)
24: {
25: parent::__construct($msg);
26: }
27:
28: public function getError()
29: {
30: header('Content-Type: text/html; charset=utf-8');
31: $retour = '<div style="background:url('.$this->image.') right no-repeat;background-color: #FBE3E4; color: #8a1f11; border-color: #FBC2C4;">';
32: $retour.= $this->getTime().' : Impossible d\'afficher l\'image, exception détectée :<br />';
33: $retour.= '<strong style="color:red">'.$this->getMessage().'</strong><br />';
34: $retour.= '<strong>Fichier : </strong> '.$this->getFile().'<br />';
35: $retour.= '<strong>Ligne : </strong>' .$this->getLine().'<br />';
36: $retour.= '</div>';
37: return $retour;
38: }
39: }
40: ?>