diff options
author | xue <> | 2007-02-01 03:42:28 +0000 |
---|---|---|
committer | xue <> | 2007-02-01 03:42:28 +0000 |
commit | 72ead8d5896b9a24df4841f9c31cff1dc2fcd878 (patch) | |
tree | 2526f0174a643052cc08199941d080f458e5684a /framework/TComponent.php | |
parent | 7fa1200b5e589a47884aa4d62630ce9099fccee1 (diff) |
updated exception reporting scheme when expression is invalid.
Diffstat (limited to 'framework/TComponent.php')
-rw-r--r-- | framework/TComponent.php | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/framework/TComponent.php b/framework/TComponent.php index 54fe7ec7..5f907082 100644 --- a/framework/TComponent.php +++ b/framework/TComponent.php @@ -389,7 +389,10 @@ class TComponent }
catch(Exception $e)
{
- throw new TInvalidOperationException('component_expression_invalid',get_class($this),$expression,$e->getMessage());
+ if($e instanceof TException)
+ throw $e;
+ else
+ throw new TInvalidOperationException('component_expression_invalid',get_class($this),$expression,$e->getMessage());
}
}
@@ -412,7 +415,10 @@ class TComponent }
catch(Exception $e)
{
- throw new TInvalidOperationException('component_statements_invalid',get_class($this),$statements,$e->getMessage());
+ if($e instanceof TException)
+ throw $e;
+ else
+ throw new TInvalidOperationException('component_statements_invalid',get_class($this),$statements,$e->getMessage());
}
}
|