Top "Error-handling" questions

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

How do I turn off PHP Notices?

Notice: Constant DIR_FS_CATALOG already defined I've already commented out display_errors in php.ini, but is not working. …

php error-handling constants
Error: could not find function ... in R

This is meant to be a FAQ question, so please be as complete as possible. The answer is a community …

r function error-handling r-faq
How do I debug "Error: spawn ENOENT" on node.js?

When I get the following error: events.js:72 throw er; // Unhandled 'error' event ^ Error: spawn ENOENT at errnoException (child_process.…

node.js debugging error-handling child-process spawn
What does "Fatal error: Unexpectedly found nil while unwrapping an Optional value" mean?

My Swift program is crashing with EXC_BAD_INSTRUCTION and one of the following similar errors. What does this error …

swift exception error-handling
IndexError: too many indices for array

I know there is a ton of these threads but all of them are for very simple cases like 3x3 …

python excel csv error-handling indexing
Begin, Rescue and Ensure in Ruby?

I've recently started programming in Ruby, and I am looking at exception handling. I was wondering if ensure was the …

ruby-on-rails ruby exception exception-handling error-handling
How do I catch an Ajax query post error?

I would like to catch the error and show the appropriate message if the Ajax request fails. My code is …

jquery ajax post error-handling
How to check the exit status using an if statement

I was wondering what would be the best way to check the exit status in an if statement in order …

bash shell if-statement error-handling
Enabling error display in PHP via htaccess only

I am testing a website online. Right now, the errors are not being displayed (but I know they exist). I …

php .htaccess error-handling
Fastest way to check if a string is JSON in PHP?

I need a really, really fast method of checking if a string is JSON or not. I feel like this …

php json error-handling json-deserialization jsonresult