Move all display functions into controller classes to share code and move the messy supercontroller code out of the index
[gitphp.git] / include / MessageException.class.php
blob:a/include/MessageException.class.php -> blob:b/include/MessageException.class.php
--- a/include/MessageException.class.php
+++ b/include/MessageException.class.php
@@ -1,1 +1,37 @@
+<?php
+/**
+ * GitPHP Message exception
+ *
+ * Custom exception for signalling display of a message to user
+ *
+ * @author Christopher Han <xiphux@gmail.com>
+ * @copyright Copyright (c) 2010 Christopher Han
+ * @package GitPHP
+ */
 
+/**
+ * Message Exception
+ *
+ * @package GitPHP
+ */
+class GitPHP_MessageException extends Exception
+{
+
+	public $Error;
+	
+	/**
+	 * Constructor
+	 *
+	 * @access public
+	 * @param string $message message string
+	 * @param boolean $error true if this is an error rather than informational
+	 * @param integer $code exception code
+	 * @param Exception $previous previous exception
+	 * @return Exception message exception object
+	 */
+	public function __construct($message, $error = false, $code = 0) {
+		$this->Error = $error;
+		parent::__construct($message, $code);
+	}
+}
+

comments