|
|
|
|||||
|
Runtime Exception
Hi,
I know ice has a bunch of predefined runtime exceptions, but I cant seem to find a way to make user defined runtime exception. Is there anyway to do this or will i just have to settle with making UnknownLocalExceptions |
|
|||||
|
Thank you for such a quick reply
The purpose of wanting a user defined runtime exception was to allow the server to throw something in order to tell the client to clear its locator cache and do another registry lookup. And as this can occur with any method call it would be inconvenaint to have to explicitly state that for every method However ive come across a way for the server to clear the clients cache and im not entirely sure why it works, or even if it should work. By getting my server to run Code:
__current.con.close(false); throw new Ice.ObjectNotExistException(__current.id, __current.facet, __current.operation); |
|
||||||
|
Hi,
Why do you need the server to notify the client to clear its locator cache? The Ice runtime clears from the locator cache the endpoints of an indirect proxy for a well-known object if it receives an Ice::ObjectNotExistException. I suspect that's the reason why it works with the code you mention (you shouldn't need to close the connection though). Cheers, Benoit. |
|
|||||
|
Quote:
Code:
module omero {
module model {
sequence<omero::model::Image> ImageSeq;
class Pixels
{
ImageSeq images;
void addImage(omero::model::Image img);
}
}
}
Code:
module omero {
local exception ClientError
{
string message;
};
}
Code:
void addImage(omero::model::Image img) throws ClientError; |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| strategies for sharing ice runtime in data layer under .net | programmerdad | Help Center | 6 | 08-03-2006 12:01 PM |
| Change IP address during runtime | wgwolf | Help Center | 1 | 05-31-2006 05:35 AM |
| Debug runtime errors | Deqing | Help Center | 4 | 02-14-2006 07:19 PM |
| determine messagesize during runtime | DeepDiver | Help Center | 3 | 01-26-2006 08:22 AM |
| a runtime error | fw_csha | Help Center | 10 | 09-29-2004 11:29 AM |