satellite_caught_exception --
See if an exception was caught from the previous function
Description
Warnung |
Diese Funktion
ist EXPERIMENTELL. Das bedeutet ALLES was hier dokumentiert ist,
kann sich ändern - OHNE HINWEIS! Das schließt u.a. ein: das Verhalten von
Funktionen und ihre Namen. Seien Sie gewarnt, dass Sie diese Funktion auf eigenes
Risko verwenden. |
This function returns TRUE if an exception has been caught.
Beispiel 1. Sample IDL file /* ++?????++ Out of Cheese Error. Redo From Start. */
exception OutOfCheeseError {
int parameter;
}
interface AnotherInterface {
void AskWhy() raises (OutOfCheeseError);
} |
|
Beispiel 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;
}
}
?> |
|