All Questions
Tagged with exceptions programming-languages
8 questions
51
votes
14
answers
8k
views
Why are errors named as "Exception" but not as "Error" in programming languages?
I've been thinking about that for quite a while actually. I am not a native English speaker myself but still, I have years of programming experience and I always asked myself this. Why is it named as ...
0
votes
1
answer
173
views
Pass by value result with exceptions [closed]
I have a doubt with the pass-by-value-result method. As far as I understood, it passess the value of the parameter to the function, and then get the result as the function ends. But what happens with ...
6
votes
4
answers
2k
views
What's the reason exceptions are heavily used in managed (C# and Java) languages but not in C++? [closed]
AFAIK, a lot of C++ projects don't allow exceptions and deny them in coding guidelines. I have a lot of reasons, for example, exception is hard to handle correctly if your binary needs to be compiled ...
37
votes
8
answers
9k
views
Are exceptions an OOP concept?
Having read a post yesterday, I realized I did not know much about the origin of exceptions. Is it an OOP related concept only? I tend to think it is, but again there are database exceptions.
22
votes
13
answers
4k
views
Why are null references shunned while throwing exceptions is considered okay?
I don't quite understand the consistent bashing of null references by some programming language folks. What's so bad about them? If I request read access to a file that doesn't exist then I'm ...
3
votes
1
answer
69
views
Error handling, creating time line, need help defining what aspects of the environment need tracking
For my final year project, I'm working on a script that will run your python program and provide a time line of events(so far working on assignments) and create a story of what happened(the changes in ...
12
votes
2
answers
677
views
What would be the best way to handle errors in parallel programs?
With parallel algorithms knocking at the door, it might be a good time to think about error handling.
So at first there were error codes. Those sucked. It was free to ignore them, so you could fail ...