aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--core/namespace/Page/Exception.php2
-rw-r--r--core/namespace/Post/Exception.php2
-rw-r--r--core/namespace/User/Exception.php2
-rw-r--r--system/page/main.php2
-rw-r--r--system/post/main.php2
5 files changed, 5 insertions, 5 deletions
diff --git a/core/namespace/Page/Exception.php b/core/namespace/Page/Exception.php
index d4794b7..d3aa06a 100644
--- a/core/namespace/Page/Exception.php
+++ b/core/namespace/Page/Exception.php
@@ -1,5 +1,5 @@
<?php
namespace Page;
-class Exception extends \Exception {}
+class Exception extends \ExceptionHandler {}
?> \ No newline at end of file
diff --git a/core/namespace/Post/Exception.php b/core/namespace/Post/Exception.php
index 516ddbe..f752bf8 100644
--- a/core/namespace/Post/Exception.php
+++ b/core/namespace/Post/Exception.php
@@ -1,5 +1,5 @@
<?php
namespace Post;
-class Exception extends \Exception {}
+class Exception extends \ExceptionHandler {}
?> \ No newline at end of file
diff --git a/core/namespace/User/Exception.php b/core/namespace/User/Exception.php
index b5bcad0..be0a599 100644
--- a/core/namespace/User/Exception.php
+++ b/core/namespace/User/Exception.php
@@ -1,5 +1,5 @@
<?php
namespace User;
-class Exception extends \Exception {}
+class Exception extends \ExceptionHandler {}
?> \ No newline at end of file
diff --git a/system/page/main.php b/system/page/main.php
index 88652fd..28de93a 100644
--- a/system/page/main.php
+++ b/system/page/main.php
@@ -86,5 +86,5 @@ catch(Page\Exception $Exception) {
# CATCH: User\Exception
#===============================================================================
catch(User\Exception $Exception) {
- exit($Exception->getMessage());
+ $Exception->defaultHandler();
} \ No newline at end of file
diff --git a/system/post/main.php b/system/post/main.php
index 8411d9a..1797d67 100644
--- a/system/post/main.php
+++ b/system/post/main.php
@@ -86,5 +86,5 @@ catch(Post\Exception $Exception) {
# CATCH: User\Exception
#===============================================================================
catch(User\Exception $Exception) {
- exit($Exception->getMessage());
+ $Exception->defaultHandler();
} \ No newline at end of file