Remove trailing whitespace.
[xhtml-compiler.git] / XHTMLCompiler / Exception.php
blob2fdbb96535d16710284dad469428e7c915633b83
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;}