Update error mailing code to use SwiftMailer.
[xhtml-compiler.git] / XHTMLCompiler / Exception.php
blob469f8bae7df288b1f9e275585b74ef0219b7fc9e
1 <?php
3 /**
4 * Generic exception that is not expected to be recoverable.
5 * @todo Internationalization
6 */
7 class XHTMLCompiler_Exception extends Exception
9 /**
10 * In-depth HTML message on the nature of the error.
12 protected $details;
14 /**
15 * @param $code HTTP status code you wish to return
16 * @param $message Brief title of the error
17 * @param $details Details on the error (can be HTML)
19 public function __construct($code = 500, $message = false, $details = false) {
20 parent::__construct($message, $code);
21 $this->details = $details;
24 /** Returns details of exception */
25 public function getDetails() {return $this->details;}