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