satellite_caught_exception --
See if an exception was caught from the previous function
Description
Waarschuwing |
Deze functie is
EXPERIMENTEEL. Dat houdt, dat het gedrag van deze functie,
de naam van de functie, concreet ALLES gedocumenteerd hier kan veranderen
in een toekomstige versie van dit pakket ZONDER WAARSCHUWING. Wees gewaarschuwd,
en gebruik deze functie op eigen risico. |
This function returns TRUE if an exception has been caught.
Voorbeeld 1. Sample IDL file /* ++?????++ Out of Cheese Error. Redo From Start. */
exception OutOfCheeseError {
int parameter;
}
interface AnotherInterface {
void AskWhy() raises (OutOfCheeseError);
} |
|
Voorbeeld 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;
}
}
?> |
|