Re: [PHP] Re: PHP5 || Catch Error & Send POST Vars...

2006-10-06 Thread Richard Lynch
On Thu, October 5, 2006 4:43 pm, sit1way wrote: > I'd like to catch errors and send POST vars to my error display page. > > So: > > try { > $r = new query($sql); > > if(!$r) { > throw new Exception($err); > } > } > catch (Exception $e) { > $this->err_msg = $e->getMessage();

[PHP] Re: PHP5 || Catch Error & Send POST Vars...

2006-10-05 Thread sit1way
Hey all. Loving Try Catch error handling in PHP5! Got a problem though: I'd like to catch errors and send POST vars to my error display page. So: try { $r = new query($sql); if(!$r) { throw new Exception($err); } } catch (Exception $e) { $this->err_msg = $e->getMessag