PHP 8.5.2
Preview: exceptions.py Size: 1.04 KB
/lib/python3/dist-packages/s3transfer/exceptions.py

# Copyright 2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"). You
# may not use this file except in compliance with the License. A copy of
# the License is located at
#
# http://aws.amazon.com/apache2.0/
#
# or in the "license" file accompanying this file. This file is
# distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
# ANY KIND, either express or implied. See the License for the specific
# language governing permissions and limitations under the License.
from concurrent.futures import CancelledError


class RetriesExceededError(Exception):
    def __init__(self, last_exception, msg='Max Retries Exceeded'):
        super().__init__(msg)
        self.last_exception = last_exception


class S3UploadFailedError(Exception):
    pass


class InvalidSubscriberMethodError(Exception):
    pass


class TransferNotDoneError(Exception):
    pass


class FatalError(CancelledError):
    """A CancelledError raised from an error in the TransferManager"""

    pass

Directory Contents

Dirs: 1 × Files: 16

Name Size Perms Modified Actions
- drwxr-xr-x 2026-01-08 12:56:26
Edit Download
15.27 KB lrw-r--r-- 2024-03-14 18:07:20
Edit Download
2.87 KB lrw-r--r-- 2024-04-17 12:46:38
Edit Download
910 B lrw-r--r-- 2024-03-14 18:07:20
Edit Download
14.13 KB lrw-r--r-- 2024-03-14 18:07:20
Edit Download
30.44 KB lrw-r--r-- 2024-03-14 18:07:20
Edit Download
2.50 KB lrw-r--r-- 2024-03-14 18:07:20
Edit Download
27.44 KB lrw-r--r-- 2024-03-14 18:07:20
Edit Download
1.04 KB lrw-r--r-- 2024-03-14 18:07:20
Edit Download
20.66 KB lrw-r--r-- 2024-03-14 18:07:20
Edit Download
27.84 KB lrw-r--r-- 2024-03-14 18:07:20
Edit Download
35.42 KB lrw-r--r-- 2024-03-14 18:07:20
Edit Download
3.53 KB lrw-r--r-- 2024-03-14 18:07:20
Edit Download
15.81 KB lrw-r--r-- 2024-03-14 18:07:20
Edit Download
29.79 KB lrw-r--r-- 2024-03-14 18:07:20
Edit Download
27.13 KB lrw-r--r-- 2024-03-14 18:07:20
Edit Download
28.38 KB lrw-r--r-- 2024-04-17 12:46:38
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).