[omniORB] CORBA exceptions aren't std::exceptions
Slawomir Lisznianski
slisznianski at asyncnet.com
Mon May 16 11:36:03 BST 2005
The C++ mapping of CORBA::Exception, as well as other types, is merly a
sample implementation. As long as the implementation adheres to the
interface defined in the standard, the implementation is compliant.
As to why, well, it wouldn't be unreasonable to ask why would you NOT
want to derive from std::exception? ;-) It provides a consistent
exception handling interface in C++. Users are used to it as a last
resort, top-level exception type. I don't think there is much of a
recovery expected when getting it, but most frameworks do handle it at
least to log before aborting.
Just my thoughts,
Slawomir
On Mon, 16 May 2005 16:02:20 +0100, "Duncan Grisby" <duncan at grisby.org>
said:
> On Friday 13 May, "Slawomir Lisznianski" wrote:
>
> > Is there a reason why CORBA exceptions (System or User) aren't derived
> > from std::exception? I do not see anywhere in the C++ IDL mapping that
> > prohibits vendors from doing so.
>
> The C++ mapping gives the class definition for base CORBA::Exception,
> and that doesn't derive from std::exception. What advantage would there
> be in doing that?
>
> Cheers,
>
> Duncan.
>
> --
> -- Duncan Grisby --
> -- duncan at grisby.org --
> -- http://www.grisby.org --
More information about the omniORB-list
mailing list