Changeset 1666

Show
Ignore:
Timestamp:
01/31/2007 09:42:28 PM (22 months ago)
Author:
xue
Message:

updated exception reporting scheme when expression is invalid.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/framework/TComponent.php

    r1587 r1666  
    390390                catch(Exception $e) 
    391391                { 
    392                         throw new TInvalidOperationException('component_expression_invalid',get_class($this),$expression,$e->getMessage()); 
     392                        if($e instanceof TException) 
     393                                throw $e; 
     394                        else 
     395                                throw new TInvalidOperationException('component_expression_invalid',get_class($this),$expression,$e->getMessage()); 
    393396                } 
    394397        } 
     
    413416                catch(Exception $e) 
    414417                { 
    415                         throw new TInvalidOperationException('component_statements_invalid',get_class($this),$statements,$e->getMessage()); 
     418                        if($e instanceof TException) 
     419                                throw $e; 
     420                        else 
     421                                throw new TInvalidOperationException('component_statements_invalid',get_class($this),$statements,$e->getMessage()); 
    416422                } 
    417423        }