Skip to content

Error Handling

Common errors and troubleshooting

❌ Common Errors

  • FormatDetectionError: File format not recognized
  • DataProcessingError: Invalid or corrupt data
  • AlignmentError: Cannot align datasets
  • FileAccessError: Cannot read input file

🔍 Troubleshooting

1
2
3
4
5
6
7
# Enable debug mode for detailed errors
python -m src.cli data.sqlite --debug

# Common debug output:
 Format Detection Successful
 Data Reading Failed: Missing required columns
   Details: Table 'BgReadings' missing 'calculated_value'

🚫 Data Validation Errors

  • Invalid glucose values (outside 40-400 mg/dL)
  • Insulin doses exceeding max_dose
  • Missing timestamps or required fields
  • Duplicate timestamps in CGM data