Archived

This forum has been archived. Please start a new discussion on GitHub.

Problem with User defined exception

Application deployed to IceGrid.
My Ice version 3.6.1


Can not get user defined exception, every time get Ice.UnknownUserException on java client part.

My ice description:
[FONT=courier new][["java:package:ru.blablabla.frsdk"]]

module FaceProcessorModule
{
..................................
exception FaceProcessorException
{
string reason = "Unknown Exception";
};

............................
interface FaceProcessor
{
............................
// Just for test
void raiseException(string pMessage) throws FaceProcessorException;
};
};[/FONT]

C++ implementation of raiseExceptoin :

.......................
void FaceProcessorModule::FaceProcessorI::raiseExceptio n(const ::std::string& pMessage, const Ice::Current&)
{
std::cout << "FaceProcessorModule: FaceProcessorI: throw an Exception" << std::endl;
FaceProcessorException fpe;
fpe.reason = pMessage;
throw fpe;
}
............................

P.S. Ice Examples with user defined exceptions works fine.


Comments