Top "Exception" questions

An exception is an unusual condition that requires deviation from the program's normal flow.

Can I catch multiple Java exceptions in the same catch clause?

In Java, I want to do something like this: try { ... } catch (/* code to catch IllegalArgumentException, SecurityException, IllegalAccessException, and NoSuchFieldException at …

java exception try-catch multi-catch
How to fix java.net.SocketException: Broken pipe?

I am using apache commons http client to call url using post method to post the parameters and it is …

java exception post sockets
Stack smashing detected

I am executing my a.out file. After execution the program runs for some time then exits with the message: **** …

c exception stack
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
Why do I get an UnsupportedOperationException when trying to remove an element from a List?

I have this code: public static String SelectRandomFromTemplate(String template,int count) { String[] split = template.split("|"); List<String> …

java exception list arraylist
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 to define custom exception class in Java, the easiest way?

I'm trying to define my own exception class the easiest way, and this is what I'm getting: public class MyException …

java exception inheritance
C++ catching all exceptions

Is there a c++ equivalent of Java's try { ... } catch (Throwable t) { ... } I am trying to debug Java/jni code that …

c++ exception
java.sql.SQLException: Access denied for user 'root'@'localhost' (using password: YES)

The following code: Class.forName("com.mysql.jdbc.Driver"); Connection m_connection = DriverManager.getConnection("jdbc:mysql://localhost","root","root"); Throws …

java mysql exception jdbc connection
file_put_contents(meta/services.json): failed to open stream: Permission denied

I am new to Laravel. I was trying to open http://localhost/test/public/ and I got Error in exception …

php exception laravel laravel-4