Top "Error-handling" questions

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

What is causing "Automation error Unspecified error" on Worksheet_Activate?

I have a worksheet named "Dates" (object name is A_Dates) that needs to be calculated when it is activated (…

vba error-handling excel-2007
Check if DAY_OF_WEEK is between Monday and Friday

I'm trying to create a method which is checking if "today" is between Monday and Friday. For this I get …

java android error-handling calendar dayofweek
Error-Handling in Swift-Language

I haven't read too much into Swift but one thing I noticed is that there are no exceptions. So how …

swift error-handling
How to return 0 with divide by zero

I'm trying to perform an element wise divide in python, but if a zero is encountered, I need the quotient …

python arrays numpy error-handling divide-by-zero
Logging errors in ASP.NET MVC

I'm currently using log4net in my ASP.NET MVC application to log exceptions. The way I'm doing this is …

asp.net-mvc error-handling
How to convert blank into null in ssis

I am extracting data from excel in ssis. One of the excel column contain blank values. so i need to …

sql-server error-handling ssis
How can I catch a 404?

I have the following code: HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url); request.Method = "HEAD"; request.Credentials = MyCredentialCache; try { request.GetResponse(); } …

c# .net exception-handling error-handling http-status-code-404
How to catch this error: "Notice: Undefined offset: 0"

I want to catch this error: $a[1] = 'jfksjfks'; try { $b = $a[0]; } catch (\Exception $e) { echo "jsdlkjflsjfkjl"; } Edit: in fact, I …

php error-handling try-catch
ASP.NET MVC 5 error handling

We want to handle 403 errors, 404 errors, all errors due to a MySpecialDomainException and provide a default error page for all …

c# asp.net-mvc error-handling asp.net-mvc-5 asp.net-mvc-5.1
A property or indexer may not be passed as an out or ref parameter

I am getting the above error and unable to resolve it. I googled a bit but can't get rid of …

c# .net error-handling