I am trying to pass e of type IOException as the cause in a new IOException as shown below.
try {
//stuff
}
catch (IOException e) {
throw new IOException("Some Message", e);
}
This gives me the error below:
The constructor IOException(String, IOException) is undefined
However, in 1.6, IOException(String, Throwable) is implemented as a constructor for this class.
It’s like I’m in Java 1.5, even though everything in my project properties says 1.6! I don’t even have a 1.5 JDK installed on my hard drive!
I was referencing the incorrect android.jar in my project setup.