views:

24

answers:

0

Starting from Android 2.2, the FileNotFoundException contains additional information about problem:

java.io.FileNotFoundException: /foo/bar (No such file or directory)

The error message format is:

java.io.FileNotFoundException: path (reason)

I have seen such reasons:

  • Invalid argument
  • No space left on device
  • No such file or directory
  • Permission denied
  • Read-only file system

Q: Where can I find all possible reason messages? Documentation, or the source file where they are thrown from.