(4.0.3 - 4.1.2 only, PECL)
本函數是實驗性的。本函數的行為,內含函數名稱以及其它任何關於本函數的文件可能會在沒有知會的情況下隨 PHP 以後的發佈而改變。使用本函數風險自擔。
This function returns TRUE if an exception has been caught, FALSE otherwise.
例子 1. Sample IDL file
/* ++?????++ Out of Cheese Error. Redo From Start. */ exception OutOfCheeseError { int parameter; } interface AnotherInterface { void AskWhy() raises (OutOfCheeseError); }
例子 2. PHP code for handling CORBA exceptions
<?php$obj = new OrbitObject ($ior);$obj->AskWhy();if (satellite_caught_exception()) { if ("IDL:OutOfCheeseError:1.0" == satellite_exception_id()) { $exception = satellite_exception_value(); echo $exception->parameter; }}?>