Exceptions and the ice_throw function
marlowa Member Andrew MarlowOrganization: Wellabove LtdProject: study into feasibility of ice on WINCE project ✭✭
in Help Center
Why do Ice exceptions have an ice_throw method? And why is it sometimes used and sometimes not? I found that on Solaris using the Forte compiler the file UserExceptionFactorymanager.cpp fails to compile because the exception NotRegisteredException is thrown using the throw statement. Changing this to ex.ice_throw() makes it compile. Can someone please explain this to me? I think it is to do with the lack of a copy ctor on the exception class and the fact that ice_throw() is a const method. Have I found a bug in UserExceptionFactorymanager.cpp?