Everyone is familiar with structured exception handling methods. Recently I encountered a problem where I was practicing remtoting and putting the business logic on the server side for implementation. The client is mainly used to obtain data and Display Interfaces and data. It is a common layer-3 application, but some exceptions occur during debugging.
Debug the server (a solution) first, and then debug the client. The problem is that the client throws an exception on the server when calling the proxy object of the customs clearance service class. The strange thing is that exceptions cannot be captured on the client. How is it possible?
Does this disrupt the traditional exception handling mechanism? The client cannot capture exceptions thrown by the server, and thus cannot obtain the exception information that fails to be processed. Note that the exception here is only the exception provided by the system. There are no factors involved in the possibility of a custom exception that does not inherit remotingexception, as well as non-serialization. I think the exception classes defined by the system will certainly not involve these issues and cannot be propagated to the client.
I found some reasons on the Internet. It still does not work if all the mermerror settings are set. Eventually, a dude'sArticle. The server solution must beRun directlyProgramInstead of DEBUG. I tried it for a while.