satellite_caught_exception
(4.0.3 - 4.1.2 only, PECL)
satellite_caught_exception -- See if an exception was caught from the previous function
说明
bool
satellite_caught_exception ( void )
警告 |
本函数是实验性的。本函数的行为,包括函数名称以及其它任何关于本函数的文档可能会在没有通知的情况下随
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; } } ?>
|
|