try-catch
Try-Catch Problem in c++
I am trying queue implementation in c++. During that I am having this problem. void Queue::view() { int i;[详细]
2023-04-09 02:29 分类:问答About catching exception good practices
I\'m writing a little program in C++11 and really use exceptions for one of the first time. I\'ve got a question about how to catch the exceptions efficiently, and after some googling I still don\'t[详细]
2023-04-08 19:04 分类:问答What is this error in the code?
while working in try-catch in came across this error. But I cant trace out the reason for this error though I surfed the net and SO.[详细]
2023-04-07 14:32 分类:问答try throw exception handling
I\'m having a little trouble with making the following piece of code work. I cannot write a throw exception so I don\'t know what else could I do.[详细]
2023-04-07 01:19 分类:问答catch wrong-arguments exception, in the general case
I want to catch an exception, but only if it comes from the very next level of logic. The intent is to handle errors caused by the act of calling the function with the wrong number of arguments, with[详细]
2023-04-06 07:10 分类:问答How to use a for loop inside a try catch block
Hello I am trying to use Jsoup to create an ArrayList of images pulled from all jpgs on a site. I am encountering nullPointerException as if the for loop is not there.[详细]
2023-04-06 02:18 分类:问答Return values, throw exceptions and rolling back transactions
The whole \"when to throw exception or return value\" questions has been asked a lot (see the following to see just one example):[详细]
2023-04-06 01:17 分类:问答How to catch the control name that caused exception in C#?
I have few text boxes that should allow a certain format, but when a user enters it in a wrong format in a textbox, I would like to catch the control name and cl开发者_StackOverflow中文版ear the text[详细]
2023-04-05 15:10 分类:问答Using finally block vs writing code after the try/catch block
As I understand, the following 2 examples should do the same thing. Why is the 1st considered better?[详细]
2023-04-05 04:35 分类:问答IIS6 Application Pool Crash
During recent stress and volume testing, we realized that after 30minutes, all uses gets disconnected from the website. After event logging, it came to our attention that the application pool crashes.[详细]
2023-04-05 01:16 分类:问答