Tagged Questions

An exception is a rarely occurring (exceptional!) condition that requires deviation from the program's normal flow. Normally, an exception should not result in total failure, but instead be attended by an exception handler. Exception handling is a built-in construct in many programming languages. ...

Im aware of the difference between std::runtime_error and std::logic_error.
So the question arose whether i should catch std::logic_error or not since those exceptions should never be thrown in the ...

I know I can specify an arbitrary number of arguments to an Exception (or any subclass thereof) when I raise it, but I see that Exceptions have a message attribute which isn't populated.
def throw():
...

I am a novice to Android Development and Java, I am a C# Developer. I cannot debug through this. I tried to get the System.out.println to spit out the exception message and stack trace but they are ...

I am using selenium 2.46 (firefox driver) to develop an application. There are a lot of element.click() in my code. Sometimes that elements are not visible or not clickable make the application throws ...

This sounds a bit odd but I have a situation where I have to send email using php mail function. This mail function is in a sub function. Now I want to execute my php script complete without having to ...

I am trying to use the tile brush to add a nice wood texture to my project. I have included a resource file, added the resource and selected the image from the ImageSource drop down. The image appears ...

I have implemented Crystal reports V 13.0.0.2 in my ASP.NET website and everything worked wonderfully except when I tried to change the name of the file exported using the export button.
I tried the ...

Since we luckily have exceptions since Swift 2, I wondered if there is a way to throw an unchecked exception. Sometimes it simply doesn't make sense to surround a statement with a throw-catch-clause ...

I have a class with a bunch of methods in it. Some of these methods start their blocks with checking or validating the arguments passed to them and throw an exception if neccessary. Unfortunately (or ...

I wrote some code for parse JSON string.
I got "Bad Cast Exception" sometimes.
In My JSON string 1. 2. don't raise exception and 3. 4. raise exception.
A difference between two group is that 1. 2.'s ...

I'm writing a basic word scramble app in Android Studio, and have gotten everything laid out and the methods working, but I'm getting a fatal exception when I send it to my debugger.
Here's my java:
...