Top "Exception" questions

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

How do I create a custom Error in JavaScript?

For some reason it looks like constructor delegation doesn't work in the following snippet: function NotImplementedError() { Error.apply(this, arguments); } …

javascript exception
Why is a ConcurrentModificationException thrown and how to debug it

I am using a Collection (a HashMap used indirectly by the JPA, it so happens), but apparently randomly the code …

java exception collections concurrentmodification
Is there anything like .NET's NotImplementedException in Java?

Is there anything like .NET's NotImplementedException in Java?

java .net exception
java.lang.IllegalStateException: Can not perform this action after onSaveInstanceState

I'm using the support library for my app. In my FragmentActivity I'm using an AsyncTask for downloading data from internet. …

android exception android-asynctask android-fragments illegalstateexception
WPF global exception handler

Sometimes, under not reproducible circumstances, my WPF application crashes without any message. The application simply close instantly. Where is the …

c# .net wpf exception exception-handling
Should a retrieval method return 'null' or throw an exception when it can't produce the return value?

I am using java language,I have a method that is supposed to return an object if it is found. …

java exception error-handling null
Is it good practice to make the constructor throw an exception?

Is it a good practice to make the constructor throw an exception? For example I have a class Person and …

java exception constructor
When to throw an exception?

I have exceptions created for every condition that my application does not expect. UserNameNotValidException, PasswordNotCorrectException etc. However I was told …

exception language-agnostic
When to catch java.lang.Error?

In what situations should one catch java.lang.Error on an application?

java exception error-handling exception-handling
Connection Java-MySql : Public Key Retrieval is not allowed

I try to connect MySql database with Java using connector 8.0.11. Everything seems to be ok but I have this exception: …

java mysql exception connector