I have one method in IDL(test.idl) file:
bool login(in string name, in string cipher) raises (AuthenticationException);
AuthenticationException is declared an exception in my IDL files. Then I use tao_idl to generate skeleton with below parameters:
-Wb,stub_export_macro=BASE_STUB_Export -Wb,stub_export_include=base_stub_export.h -Wb,skel_export_macro=BASE_SKEL_Export -Wb,skel_export_include=base_skel_export.h -GC
However, the generated login method in testS.h is like:
virtual ::project::UserContext * login (
const char * name,
const char * cipher) = 0;
and testI.h:
virtual
::project::UserContext * login (
const char * name,
const char * cipher);
This is strange to me. Because method declaration missing AuthenticationException exception. I believe that the method should be like: login(..) throw(AuthenticationException) in which custom exception, instead of CORBA standard exception, is thrown in business logic and client stub can catch these exception.
Is there something wrong in my tao_idl parameters?