summaryrefslogtreecommitdiff
path: root/framework/TComponent.php
diff options
context:
space:
mode:
authorxue <>2007-03-02 21:05:38 +0000
committerxue <>2007-03-02 21:05:38 +0000
commit13495b462f6a618530f0f6af71fb6fad6bafed91 (patch)
treeebe213dc568f858d16c48403948227c7e0932592 /framework/TComponent.php
parent56df1d34bd381e864f613cc3b72fb886dc548008 (diff)
Improved error display.
Diffstat (limited to 'framework/TComponent.php')
-rw-r--r--framework/TComponent.php10
1 files changed, 2 insertions, 8 deletions
diff --git a/framework/TComponent.php b/framework/TComponent.php
index 5f907082..54fe7ec7 100644
--- a/framework/TComponent.php
+++ b/framework/TComponent.php
@@ -389,10 +389,7 @@ class TComponent
}
catch(Exception $e)
{
- if($e instanceof TException)
- throw $e;
- else
- throw new TInvalidOperationException('component_expression_invalid',get_class($this),$expression,$e->getMessage());
+ throw new TInvalidOperationException('component_expression_invalid',get_class($this),$expression,$e->getMessage());
}
}
@@ -415,10 +412,7 @@ class TComponent
}
catch(Exception $e)
{
- if($e instanceof TException)
- throw $e;
- else
- throw new TInvalidOperationException('component_statements_invalid',get_class($this),$statements,$e->getMessage());
+ throw new TInvalidOperationException('component_statements_invalid',get_class($this),$statements,$e->getMessage());
}
}