Warning: file_put_contents(): Only -1 of 66 bytes written, possibly out of free disk space in /var/www/html/index.php on line 3

Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/index.php:3) in /var/www/html/cache.php on line 23

Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/index.php:3) in /var/www/html/cache.php on line 24

Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/index.php:3) in /var/www/html/cache.php on line 25
satellite_caught_exception Podręcznik PHP Poprzedni Następny (4.0.3 - 4.1.2 only, PECL) satellite_caught_exception -- See if an exception was caught from the previous function Opis bool ...
Forum und email
satellite_caught_exception

satellite_caught_exception

(4.0.3 - 4.1.2 only, PECL)

satellite_caught_exception -- See if an exception was caught from the previous function

Opis

bool satellite_caught_exception ( void )

Ostrzeżenie

Ta funkcja jest w stadium EKSPERYMENTALNYM. Oznacza to, że zachowanie funkcji, jej nazwa, w zasadzie wszystko udokumentowane tutaj może zostać zmienione w przyszłych wersjach PHP bez wcześniejszego uprzedzenia. Używaj tej funkcji na własne ryzyko.

Zwracane wartości

This function returns TRUE if an exception has been caught, FALSE otherwise.

Przykłady

Przykład 1. Sample IDL file

/* ++?????++ Out of Cheese Error. Redo From Start. */
exception OutOfCheeseError {
    int parameter;
}

interface AnotherInterface {
    void AskWhy() raises (OutOfCheeseError);
}

Przykład 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;
    }
}
?>