satellite_caught_exception
(4.0.3 - 4.1.2 only, PECL)
satellite_caught_exception -- See if an exception was caught from the previous function
Descripción
bool
satellite_caught_exception ( void )
Aviso |
Esta función
es EXPERIMENTAL. Esto significa que el
comportamiento de esta función, el nombre de esta
función y en definitiva TODO lo documentado sobre esta
función, puede cambiar en una futura version de PHP SIN
AVISO. La advertencia queda hecha, y utilizar esta extensión
queda bajo su propia responsabilidad. |
Valores retornados
This function returns TRUE if an exception has been caught, FALSE
otherwise.
Ejemplos
Ejemplo 1. Sample IDL file /* ++?????++ Out of Cheese Error. Redo From Start. */
exception OutOfCheeseError {
int parameter;
}
interface AnotherInterface {
void AskWhy() raises (OutOfCheeseError);
} |
|
Ejemplo 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; } } ?>
|
|