exception-handling
check if network drive exists with timeout in c#
i created a windows service that move files around between the server\'s hard drive (where the service is installed) to the network drive mapped in the server. one of the problems I encountered while[详细]
2023-02-05 18:54 分类:问答Which exception handling should I choose for a client connect
I have a client class which connects to a server via WebRequest. Now I\'m struggling with how I could best implement the WebException handling. For a good UI feedback I only need (so far) the exceptio[详细]
2023-02-05 17:42 分类:问答changes inside try-except persist after exception is caught
Since I\'ve learned of exception-handling the first time (not in Python), I was under the impression that when you begin a try block, it\'s like you start writing in a sandbox: if an exception occurs[详细]
2023-02-05 15:14 分类:问答Continue on exception
I get a few exceptions when I run my code. What I want to do is, I want to continue on FileNotFoundException and NullPointerException and break on any 开发者_开发知识库other exception.[详细]
2023-02-05 15:14 分类:问答How to make ServiceActivationException thrown in the ASP.NET web server through to the browser?
I have a Silverlight client talking to a web server (which is, of course, ASP.NET application) using WCF.[详细]
2023-02-05 13:18 分类:问答c# exception not caught
I have a method that is a listener for a TCP client which looks like this: private static void ProcessClient([详细]
2023-02-05 12:04 分类:问答WPF - check resource exists without structured exception handling
Is there any way to check if a resource exists in an assembly without having to use exception handling?I\'m currently loading images from several assemblies, and if they don\'t exist then I\'m ha开发者[详细]
2023-02-05 11:41 分类:问答Android OutOfMemoryErrors don't appear to immediately terminate activity - why?
I\'m collecting crash logs from clients via code that runs with the Thread.setDefaultUncaughtExceptionHandler callback.[详细]
2023-02-05 10:50 分类:问答What WCF Exceptions should I retry on failure for? (such as the bogus 'xxx host did not receive a reply within 00:01:00')
I have a WCF client that has thrown this common error, just to be resolved with retrying the HTTP call to the server.For what it\'s worth this exception was not generated within 1 minute.It was genera[详细]
2023-02-05 09:32 分类:问答C++/C# exception throwing
In c++, I am able to throw a bare string as an exception, but in c# I must throw an Exception.What is the c# equivalent to throwing a string i开发者_开发知识库n c++ ?[详细]
2023-02-05 09:24 分类:问答