[omniORB] propagating exceptions

Srikanth Mandava Srikanth.Mandava at cosinecom.com
Tue Mar 16 17:10:15 GMT 2004


This is how I was catching it at the highest level. But the exception never
reaches here. As specified in the code snippet I sent, you can see that it
exited from the stub code. 

try :
    # call some functions
except CORBA.INV_OBJREF:

- Srikanth

-----Original Message-----
From: W. Borgert [mailto:debacle at debian.org]
Sent: Tuesday, March 16, 2004 12:20 PM
To: Srikanth Mandava
Cc: 'omniorb-list at omniorb-support.com'
Subject: RE: [omniORB] propagating exceptions


Quoting Srikanth Mandava <Srikanth.Mandava at cosinecom.com>:
> The application code is in commandexecutor.py which has the following
> function. The exec is doing the CORBA execution. But the exception never

You may catch the exception explicitly:

    except CORBA.OBJECT_NOT_EXIST:
        ...

    except CORBA.CORBA.INV_OBJREF:
        ....

If nothing helps, do a "catch all" at the end of your block:

    except:
        ...

Cheers,
-- 
W. Borgert - http://people.debian.org/~debacle/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.omniorb-support.com/pipermail/omniorb-list/attachments/20040316/4ee5b570/attachment.htm


More information about the omniORB-list mailing list