What is ApplicationException for in .NET?
To throw exceptions, I usually use built-in exception classes, e.g. ArgumentNullException and NotSupportedException. However, sometimes I need to use a custom exception and … Read more
To throw exceptions, I usually use built-in exception classes, e.g. ArgumentNullException and NotSupportedException. However, sometimes I need to use a custom exception and … Read more
I’m working on trying to port an ASP.NET app from Server 2003 (and IIS6) to Server 2008 (IIS7). When I try and visit … Read more
I am trying to set up a large-scale REST services server. We’re using Spring Boot 1.2.1 Spring 4.1.5, and Java 8. Our controllers … Read more
I have a problem trying out the Lambda expressions of Java 8. Usually it works fine, but now I have methods that throw … Read more
Whatever is inside finally blocks is executed (almost) always, so what’s the difference between enclosing code into it or leaving it unclosed? 13 … Read more
I have seen people say that it is bad form to use catch with no arguments, especially if that catch doesn’t do anything: … Read more
Closed. This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be … Read more
I ask because I couldn’t find the stack trace in Visual Studio, while debugging an exception that occurred. 7 Answers 7
Question: I want to define a global exception handler for unhandled exceptions in my console application. In asp.net, one can define one in … Read more
I’d like to do something like this: some_method.should_raise <any kind of exception, I don’t care> How should I do this? some_method.should_raise exception … … Read more