Exceptions for Android

How do I handle an exception thrown when trying to access a non-existent file?

The code from here try \ Language (API) \ Processing 3+ does not work on Android

@Xyu === try catch works with android; in your case i think the exception trhrown is fileNotFoundException,; yet can you put the code you are using and the error you get in condole?