Top "Error-handling" questions

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

Disabling Strict Standards in PHP 5.4

I'm currently running a site on php 5.4, prior to this I was running my site on 5.3.8. Unfortunately, php 5.4 combines E_…

php error-handling
PHP's white screen of death

Quite often I will try and run a PHP script and just get a blank screen back. No error message; …

php error-handling error-reporting wsod
ErrorActionPreference and ErrorAction SilentlyContinue for Get-PSSessionConfiguration

My case: $ErrorActionPreference = "Stop"; "1 - $ErrorActionPreference;" Get-ChildItem NoSuchFile.txt -ErrorAction SilentlyContinue; "2 - $ErrorActionPreference;" Get-ChildItem NoSuchFile.txt -ErrorAction Stop; "3 - $ErrorActionPreference;" …

powershell error-handling silent
Log exception with traceback

How can I log my Python errors? try: do_something() except: # How can I log my exception here, complete with …

python exception logging error-handling
Error Handler - Exit Sub vs. End Sub

Why would I want to get out of an Error Handler (after handling) with an Exit Sub instead of just …

vba vb6 error-handling
What's a good way to extend Error in JavaScript?

I want to throw some things in my JS code and I want them to be instanceof Error, but I …

javascript exception error-handling
What does 'index 0 is out of bounds for axis 0 with size 0' mean?

I am new to both python and numpy. I ran a code that I wrote and I am getting this …

python numpy indexing error-handling index-error
Raise warning in Python without interrupting program

I am trying to raise a Warning in Python without making the program crash / stop / interrupt. I use the following …

python exception error-handling warnings
REST API error code 500 handling

We are building a new REST API. I was arguing that error code 500 (Internal Server Error) should never be returned. …

api rest http error-handling error-code
How to catch integer(0)?

Let's say we have a statement that produces integer(0), e.g. a <- which(1:3 == 5) What is the safest way …

r error-handling integer try-catch