save_points_intl_exceptions library
Custom exceptions for date/time operations
Provides specific exception types for better error handling and debugging.
Usage
try {
final date = DateParsers.parseDate('invalid-date');
} on InvalidDateException catch (e) {
print('Invalid date: ${e.message}');
}
Exceptions / Errors
- DateCalculationException
- Exception thrown when a date calculation results in an invalid date
- DateException
- Base exception class for all date/time related errors
- InvalidConfigurationException
- Exception thrown when a configuration is invalid
- InvalidDateException
- Exception thrown when a date string cannot be parsed
- InvalidDateRangeException
- Exception thrown when a date range is invalid (e.g., start > end)
- InvalidFormatPatternException
- Exception thrown when a date format pattern is invalid
- TimezoneException
- Exception thrown when a timezone operation fails
- UnsupportedLocaleException
- Exception thrown when a locale is not supported