diff options
Diffstat (limited to 'framework/TComponent.php')
-rw-r--r-- | framework/TComponent.php | 10 |
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());
}
}
|