Code example for IOException

Methods: toString

0
                        CAMERA_STRESS_IMAGES_PREFIX, System.currentTimeMillis())); 
                fos.write(data); 
            } catch (FileNotFoundException e) { 
                Log.e(TAG, "File not found: " + e.toString()); 
            } catch (IOException e) { 
                Log.e(TAG, "Error accessing file: " + e.toString()); 
            } finally { 
                try { 
                    if (fos != null) { 
                        fos.close(); 
                    } 
                } catch (IOException e) { 
                    Log.e(TAG, "Error closing file: " + e.toString()); 
                } 
            } 
        } 
    }; 
 
    /** 
     * Helper method for prepping test 
     */