Delicious Bookmark this on Delicious Share on Facebook SlashdotSlashdot It! Digg! Digg



PHP : Function Reference : Satellite CORBA client extension [deprecated] : satellite_caught_exception

satellite_caught_exception

See if an exception was caught from the previous function (PHP 4 >= 4.0.3)
bool satellite_caught_exception ( )

Example 2147. Sample IDL file

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

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

Example 2148. 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;
   }
}
?>

Change Language


Follow Navioo On Twitter
OrbitEnum
OrbitObject
OrbitStruct
satellite_caught_exception
satellite_exception_id
satellite_exception_value
satellite_get_repository_id
satellite_load_idl
satellite_object_to_string
eXTReMe Tracker