sentinelhub.download.handlers
Module implementing error handlers which can occur during download procedure
- sentinelhub.download.handlers.fail_user_errors(download_func)[source]
Decorator function for handling user errors
- Parameters:
download_func (Callable[[Self, DownloadRequest], T]) –
- Return type:
Callable[[Self, DownloadRequest], T]
- sentinelhub.download.handlers.retry_temporary_errors(download_func)[source]
Decorator function for handling server and connection errors
- Parameters:
download_func (Callable[[SelfWithConfig, DownloadRequest], T]) –
- Return type:
Callable[[SelfWithConfig, DownloadRequest], T]
- sentinelhub.download.handlers.fail_missing_file(download_func)[source]
A decorator for raising an error if a file is missing
- Parameters:
download_func (Callable[[Self, DownloadRequest], T]) –
- Return type:
Callable[[Self, DownloadRequest], T]