PHP: satellite_caught_exception - Manual

downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

satellite_exception_id OrbitStruct

Last updated: Sat, 27 Jan 2007

view this page in

# satellite_caught_exception

(4.0.3 - 4.1.2 only, PECL)

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

## Описание

bool satellite_caught_exception ( void )

Внимание
Эта функция является ЭКСПЕРИМЕНТАЛЬНОЙ. Поведение этой функции, ее имя и относящаяся к ней документация могут измениться в последующих версиях PHP без уведомления. Используйте эту функцию на свой страх и риск.

## Возвращаемые значения

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

## Примеры

Пример 1. Sample IDL file

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

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

Пример 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;
}
}
?>`

add a note User Contributed Notes
satellite_caught_exception
There are no user contributed notes for this page.
satellite_exception_id OrbitStruct

Last updated: Sat, 27 Jan 2007
show source | credits | stats | sitemap | contact | advertising | mirror sites
Copyright © 2001-2007 The PHP Group
All rights reserved.
This mirror generously provided by: Yahoo! Inc.
Last updated: Sat Mar 10 10:36:09 2007 PST