Re: PHP5 || Catch Error & Send POST Vars...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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->getMessage();

    /* somehow kick user to error display screen with POST vars */
    ?????
}

Thought about using CURL(), but that won't kick the user to the error 
screen.

Any ideas?

TIA,

--Noah

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux