Top "Exception" questions

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

hardcoded string "row three", should use @string resource

I'm a beginner android developer , I was trying to run this Linear Layout in eclipse : <?xml version="1.0" encoding="utf-8"?&…

android exception internationalization
Handling exceptions from Java ExecutorService tasks

I'm trying to use Java's ThreadPoolExecutor class to run a large number of heavy weight tasks with a fixed number …

java multithreading exception executorservice threadpoolexecutor
Why doesn't list have safe "get" method like dictionary?

Why doesn't list have a safe "get" method like dictionary? >>> d = {'a':'b'} >>> d[…

python list exception indexoutofboundsexception
Proper use of errors

I'm using TypeScript for a reasonably large project, and am wondering what the standard is for the use of Errors. …

exception typescript
What causing this "Invalid length for a Base-64 char array"

I have very little to go on here. I can't reproduce this locally, but when users get the error I …

.net asp.net exception viewstate
IllegalArgumentException or NullPointerException for a null parameter?

I have a simple setter method for a property and null is not appropriate for this particular property. I have …

java exception null nullpointerexception illegalargumentexception
How to throw std::exceptions with variable messages?

This is an example of what I often do when I want to add some information to an exception: std::…

c++ exception exception-handling
What throws an IOException in Java?

java.io.IOException seems to be the most common type of exception, and coincidentally, it seems to also be the …

java exception io ioexception
Java List.add() UnsupportedOperationException

I try to add objects to a List<String> instance but it throws an UnsupportedOperationException. Does anyone know …

java list exception arraylist unsupportedoperation
How do I use Assert.Throws to assert the type of the exception?

How do I use Assert.Throws to assert the type of the exception and the actual message wording? Something like …

c# exception nunit assertion