I am trying to create some files programmatically in Android, which are to be saved in the phone's internal memory. My question is , which exception am I supposed to catch in the event that the phone memory completely fills up as I create and save the files?
Essentially, I want to know which exception is triggered, so that I can prevent my app from crashing in that event.
EDIT: I came to know that IOException is triggered. But how do I track whether this exception occured, because internal memory was full? Since IOException can occur for variety of reasons, how do I track this particular scenario?