REDROOM
PHP 8.5.2
Path:
Logout
Edit File
Size: 4.03 KB
Close
//lib/python3/dist-packages/boto3/exceptions.py
Text
Base64
# Copyright 2014 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 # # https://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. # All exceptions in this class should subclass from Boto3Error. import botocore.exceptions # All exceptions should subclass from Boto3Error in this module. class Boto3Error(Exception): """Base class for all Boto3 errors.""" class ResourceLoadException(Boto3Error): pass # NOTE: This doesn't appear to be used anywhere. # It's probably safe to remove this. class NoVersionFound(Boto3Error): pass # We're subclassing from botocore.exceptions.DataNotFoundError # to keep backwards compatibility with anyone that was catching # this low level Botocore error before this exception was # introduced in boto3. # Same thing for ResourceNotExistsError below. class UnknownAPIVersionError( Boto3Error, botocore.exceptions.DataNotFoundError ): def __init__(self, service_name, bad_api_version, available_api_versions): msg = ( f"The '{service_name}' resource does not support an API version of: {bad_api_version}\n" f"Valid API versions are: {available_api_versions}" ) # Not using super because we don't want the DataNotFoundError # to be called, it has a different __init__ signature. Boto3Error.__init__(self, msg) class ResourceNotExistsError( Boto3Error, botocore.exceptions.DataNotFoundError ): """Raised when you attempt to create a resource that does not exist.""" def __init__(self, service_name, available_services, has_low_level_client): msg = ( "The '{}' resource does not exist.\n" "The available resources are:\n" " - {}\n".format( service_name, '\n - '.join(available_services) ) ) if has_low_level_client: msg = ( f"{msg}\nConsider using a boto3.client('{service_name}') " f"instead of a resource for '{service_name}'" ) # Not using super because we don't want the DataNotFoundError # to be called, it has a different __init__ signature. Boto3Error.__init__(self, msg) class RetriesExceededError(Boto3Error): def __init__(self, last_exception, msg='Max Retries Exceeded'): super().__init__(msg) self.last_exception = last_exception class S3TransferFailedError(Boto3Error): pass class S3UploadFailedError(Boto3Error): pass class DynamoDBOperationNotSupportedError(Boto3Error): """Raised for operations that are not supported for an operand.""" def __init__(self, operation, value): msg = ( f'{operation} operation cannot be applied to value {value} of type ' f'{type(value)} directly. Must use AttributeBase object methods ' f'(i.e. Attr().eq()). to generate ConditionBase instances first.' ) Exception.__init__(self, msg) # FIXME: Backward compatibility DynanmoDBOperationNotSupportedError = DynamoDBOperationNotSupportedError class DynamoDBNeedsConditionError(Boto3Error): """Raised when input is not a condition""" def __init__(self, value): msg = ( f'Expecting a ConditionBase object. Got {value} of type {type(value)}. ' f'Use AttributeBase object methods (i.e. Attr().eq()). to ' f'generate ConditionBase instances.' ) Exception.__init__(self, msg) class DynamoDBNeedsKeyConditionError(Boto3Error): pass class PythonDeprecationWarning(Warning): """ Python version being used is scheduled to become unsupported in an future release. See warning for specifics. """ pass
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 8 × Files: 6
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
data
DIR
-
drwxr-xr-x
2026-01-08 12:55:52
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
docs
DIR
-
drwxr-xr-x
2026-01-08 12:56:27
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
dynamodb
DIR
-
drwxr-xr-x
2026-01-08 12:56:27
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
ec2
DIR
-
drwxr-xr-x
2026-01-08 12:56:27
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
examples
DIR
-
drwxr-xr-x
2026-01-08 12:55:52
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
resources
DIR
-
drwxr-xr-x
2026-01-08 12:56:27
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
s3
DIR
-
drwxr-xr-x
2026-01-08 12:56:27
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
__pycache__
DIR
-
drwxr-xr-x
2026-01-08 12:56:27
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
compat.py
2.82 KB
lrw-r--r--
2024-02-20 19:05:10
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
crt.py
5.28 KB
lrw-r--r--
2024-02-20 19:05:10
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
exceptions.py
4.03 KB
lrw-r--r--
2024-02-20 19:05:10
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
session.py
20.27 KB
lrw-r--r--
2024-02-20 19:05:10
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
utils.py
3.07 KB
lrw-r--r--
2024-02-20 19:05:10
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
__init__.py
3.34 KB
lrw-r--r--
2024-02-20 19:05:10
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).