Re: Catching exceptions
- From: Bowie Owens <bowie owens csiro au>
- To: Marc Siegel <mlsiegel ll mit edu>
- Cc: orbitcpp-list <orbitcpp-list gnome org>
- Subject: Re: Catching exceptions
- Date: Thu, 17 Jun 2004 08:43:41 +1000
Marc Siegel wrote:
I can catch the exception, but I cant figure out what the exception
is. In MICO and TAO there is a method const char* _name() on the
exception class. Is there similar in Orbit/OrbitCpp?
I don't think _name() is part of the standard. SystemException's have a
_orbitcpp_get_repoid() which unsuprisingly returns the repoid string of
the exception. I might try and move that down Exception and maybe change
the name. Alternatively, you can use C++ RTTI to try and get an idea
about which exception is being caught. For example:
catch (CORBA::Exception& x) {
std::cerr << typeid(x).name() << '\n';
}
--
Bowie Owens
CSIRO Mathematical & Information Sciences
phone : +61 3 9545 8055
fax : +61 3 9545 8080
mobile : 0425 729 875
email : Bowie Owens csiro au
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]