exception (6,680)


c# - Unhandled Exception Handler in.NET 1.1

c# - Unhandled Exception Handler in.NET 1.1

I'm maintaining a.NET 1.1 application, and one of the things I've been tasked with is making sure the user doesn't see any unfriendly error notifications. I've added handlers to Application.ThreadEx…


c++ - Ensuring that Exceptions are always сaught

Exceptions in C++ don't need to be caught(no compile time errors) by the calling function. So it's up to developer's judgment whether to catch them using try/catch(unlike in Java). Is there a way o…


c# - How to check for file lock?

This question already has answers here:Is there a way to check if a file is in use?(18 answers) Closed 3 years ago.Is there any way to check whether a fi…


Reducing duplicate error handling code in C#?

I've never been completely happy with the way exception handling works, there's a lot exceptions and try/catch brings to the table(stack unwinding, etc.), but it seems to break a lot of the OO model…


Global Exception Handling for winforms control

When working on ASP.NET 1.1 projects I always used the Global.asax to catch all errors. I'm looking for a similar way to catch all exceptions in a Windows Forms user control, which ends up being a hos…


java - IllegalArgumentException or NullPointerException for a null parameter?

Closed.This question is opinion-based.It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by…


Repair SVN Checksum

I'm using subclipse in Flex Builder 3, and recently received this error when trying to commit: svn: Checksum mismatch for '/Users/redacted/Documents/Flex Builder 3/path/to/my/file.mxml'; expected: 'f8…


security - Defensive programming

When writing code do you consciously program defensively to ensure high program quality and to avoid the possibility of your code being exploited maliciously, e.g. through buffer overflow exploits or…


.net - Performance Considerations for throwing Exceptions

I have come across the following type of code many a times, and I wonder if this is a good practice(from Performance perspective) or not: try{...// some code}catch(Exception ex){...…


Is there a “try to lock, skip if timed out” operation in C#?

I need to try to lock on an object, and if its already locked just continue(after time out, or without it). The C# lock statement is blocking.…





java handling error how example catch not throw exceptions try