(PHP 4 >= 4.0.3)
satellite_caught_exception --
Zjistit, jestli byla v p°edchozφ funkci zachycena v²jimka
Popis
bool
satellite_caught_exception
()
Tato funkce vracφ true, pokud byla zachycena v²jimka.
P°φklad 1. Ukßzkov² IDL soubor
/* ++?????++ Out of Cheese Error. Redo From Start. */
exception OutOfCheeseError {
int parameter;
}
interface AnotherInterface {
void AskWhy() raises (OutOfCheeseError);
}
|
|
P°φklad 2. PHP k≤d pro zpracovßnφ CORBA v²jimek
<?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;
}
}
?>
|
|