Top "Error-handling" questions

Programming language constructs designed to handle errors signaled by error codes, exceptions or other language specific means.

Why would you ever use "On Error Goto 0"?

Why would you ever use "On Error Goto 0" in a VB6 app? This statement turns the error handler off and …

vb6 error-handling
System error 5 Access is denied when starting a .NET service

When I try to start a service I created in Visual Studio I receive the following error: System error 5 has …

.net windows visual-studio error-handling windows-services
What is the difference between exit() and abort()?

In C and C++, what is the difference between exit() and abort()? I am trying to end my program after …

c++ c error-handling exit abort
Equivalent of "throw" in R

How does one "throw" an error in R? I have a function that takes a data frame and some column …

r error-handling
How can I get php to return 500 upon encountering a fatal exception?

PHP fatal errors come back as status code 200 to the HTTP client. How can I make it return a status …

php error-handling error-code
Why MAMP doesn't display errors?

OK this is getting very frustrating. MAMP used to display errors but then stopped. I decided to do a fresh …

php error-handling mamp
Python Return error from function

I am writing a python function which uses two arrays of equal size [n,1]. Before performing any calculations, I'd like …

python error-handling break
External exception C0000006

I've wrote some program in Delphi and when I am running it from a disk on key. At some point …

delphi exception error-handling windows-xp
How do I set $? or the return code in Bash?

I want to set a return value once so it goes into the while loop: #!/bin/bash while [ $? -eq 1 ] do #…

bash error-handling return-value exit-code
PHP: fopen error handling

I do fetch a file with $fp = fopen('uploads/Team/img/'.$team_id.'.png', "rb"); $str = stream_get_…

php error-handling fopen