Migrate index.xhtml and comparison.xhtml to use centralized entities for current...
[xhtml-compiler.git] / XHTMLCompiler / Exception.php
blob7d6fb0c049e757a51f098e8be293085dadc33c70
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 text 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
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;}