summaryrefslogtreecommitdiff
path: root/framework/Exceptions
diff options
context:
space:
mode:
authorFabio Bas <ctrlaltca@gmail.com>2015-01-22 09:14:12 +0100
committerFabio Bas <ctrlaltca@gmail.com>2015-01-22 09:14:12 +0100
commit5230f8f8a86fc1ae5d90f8c74ae65c93e197502b (patch)
treee870d29e21c14d5b1683d638dff978afe0a104fa /framework/Exceptions
parent53e4cd65205ac33d7dbc61a767f467c1b896dfc6 (diff)
Apply namespaces to class inheritances (pt1)
Diffstat (limited to 'framework/Exceptions')
-rw-r--r--framework/Exceptions/TErrorHandler.php6
-rw-r--r--framework/Exceptions/TException.php4
-rw-r--r--framework/Exceptions/THttpException.php1
-rw-r--r--framework/Exceptions/TTemplateException.php1
4 files changed, 9 insertions, 3 deletions
diff --git a/framework/Exceptions/TErrorHandler.php b/framework/Exceptions/TErrorHandler.php
index 13d1203f..82a483a8 100644
--- a/framework/Exceptions/TErrorHandler.php
+++ b/framework/Exceptions/TErrorHandler.php
@@ -10,6 +10,8 @@
*/
namespace Prado\Exceptions;
+use \Prado\TApplicationMode;
+use \Prado\Prado;
/**
* TErrorHandler class
@@ -49,7 +51,7 @@ namespace Prado\Exceptions;
* @package Prado\Exceptions
* @since 3.0
*/
-class TErrorHandler extends TModule
+class TErrorHandler extends \Prado\TModule
{
/**
* error template file basename
@@ -149,7 +151,7 @@ class TErrorHandler extends TModule
protected static function hideSecurityRelated($value, $exception=null)
{
$aRpl = array();
- if($exception !== null && $exception instanceof Exception)
+ if($exception !== null && $exception instanceof \Exception)
{
$aTrace = $exception->getTrace();
foreach($aTrace as $item)
diff --git a/framework/Exceptions/TException.php b/framework/Exceptions/TException.php
index fb1db200..faa46abf 100644
--- a/framework/Exceptions/TException.php
+++ b/framework/Exceptions/TException.php
@@ -10,6 +10,8 @@
*/
namespace Prado\Exceptions;
+use Prado\Prado;
+use Prado\TPropertyValue;
/**
* TException class
@@ -32,7 +34,7 @@ namespace Prado\Exceptions;
* @package Prado\Exceptions
* @since 3.0
*/
-class TException extends Exception
+class TException extends \Exception
{
private $_errorCode='';
static $_messageCache=array();
diff --git a/framework/Exceptions/THttpException.php b/framework/Exceptions/THttpException.php
index 883c2b63..39649c5d 100644
--- a/framework/Exceptions/THttpException.php
+++ b/framework/Exceptions/THttpException.php
@@ -10,6 +10,7 @@
*/
namespace Prado\Exceptions;
+use Prado\TPropertyValue;
/**
* THttpException class
diff --git a/framework/Exceptions/TTemplateException.php b/framework/Exceptions/TTemplateException.php
index 4b58df10..25b5caa5 100644
--- a/framework/Exceptions/TTemplateException.php
+++ b/framework/Exceptions/TTemplateException.php
@@ -10,6 +10,7 @@
*/
namespace Prado\Exceptions;
+use Prado\TPropertyValue;
/**
* TTemplateException class