๐Ÿ”ง Project: Safe File Reader

๐Ÿ“š Lesson 6: Error Handling โฑ 25-30 min ๐Ÿ“Š Intermediate
๐ŸŽฏ Objective

Create a robust file reader that handles all possible error scenarios: missing files, permission issues, format errors, and empty files. Use custom exceptions and try/catch with rethrow.

Requirements

  1. Create custom exceptions: FileReadException, FileNotFoundException, FilePermissionException, FileFormatException, EmptyFileException
  2. Read file contents with proper error handling
  3. Parse CSV and JSON files with format validation
  4. Log errors to a separate error log file
  5. Implement retry logic for recoverable errors
  6. Use finally block for cleanup operations