Show
Ignore:
Timestamp:
10/02/08 01:00:33 (3 months ago)
Author:
nowelium
Message:

fix:procedure & transaction scripts

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/php/misc/Hermit/src/Hermit/tx/HermitRequiresNewTx.php

    r19344 r20417  
    55 */ 
    66class HermitRequiresNewTx extends AbstractHermitTx { 
     7    public function proceed(HermitProxy $proxy, $name, array $parameters){ 
     8        $this->begin(); 
     9        try { 
     10            $ret = $proxy->request($name, $parameters); 
     11            $this->commit(); 
     12            return $ret; 
     13        } catch(Exception $e){ 
     14            $this->complete($e); 
     15            throw $e; 
     16        } 
     17    } 
    718}