aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/extension/exception.php
diff options
context:
space:
mode:
authorNathan Guse <nathaniel.guse@gmail.com>2012-07-23 20:28:04 -0500
committerUnknown Bliss <m@michaelcullum.com>2012-09-01 15:05:36 +0100
commit2a7e1292919ed1397a3f1951e510d84565d002d7 (patch)
tree7b559e2311aef386738660dc7b3be640b3fde6aa /phpBB/includes/extension/exception.php
parent89f4cf6a8c10f9b0875cf7f278016aff67eb38fc (diff)
downloadforums-2a7e1292919ed1397a3f1951e510d84565d002d7.tar
forums-2a7e1292919ed1397a3f1951e510d84565d002d7.tar.gz
forums-2a7e1292919ed1397a3f1951e510d84565d002d7.tar.bz2
forums-2a7e1292919ed1397a3f1951e510d84565d002d7.tar.xz
forums-2a7e1292919ed1397a3f1951e510d84565d002d7.zip
[ticket/10631] Simplify exceptions
PHPBB-10631
Diffstat (limited to 'phpBB/includes/extension/exception.php')
-rw-r--r--phpBB/includes/extension/exception.php27
1 files changed, 27 insertions, 0 deletions
diff --git a/phpBB/includes/extension/exception.php b/phpBB/includes/extension/exception.php
new file mode 100644
index 0000000000..e08a8912ea
--- /dev/null
+++ b/phpBB/includes/extension/exception.php
@@ -0,0 +1,27 @@
+<?php
+/**
+*
+* @package extension
+* @copyright (c) 2012 phpBB Group
+* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
+*
+*/
+
+/**
+* @ignore
+*/
+if (!defined('IN_PHPBB'))
+{
+ exit;
+}
+
+/**
+ * Exception class for metadata
+ */
+class phpbb_extension_exception extends UnexpectedValueException
+{
+ public function __toString()
+ {
+ return $this->getMessage();
+ }
+} \ No newline at end of file