Subject | Throwing Exception Error |
---|---|
Author | Uwe Oeder |
Post date | 2005-06-13T10:05:29Z |
The following line of code :
$this->mydbhandle =
ibase_connect($this->myhost,$this->myusername,$this->mypassword) or
(throw new Exception(ibase_errmsg())) ;
returns me the following error :
Parse error: syntax error, unexpected T_THROW in
Z:\version2\files\library\_debug_tmp.php on line 99
how can I throw the exception on something like an error when connecting
to the database.
$this->mydbhandle =
ibase_connect($this->myhost,$this->myusername,$this->mypassword) or
(throw new Exception(ibase_errmsg())) ;
returns me the following error :
Parse error: syntax error, unexpected T_THROW in
Z:\version2\files\library\_debug_tmp.php on line 99
how can I throw the exception on something like an error when connecting
to the database.