1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180
|
######################################################################
#
# File: b2sdk/_v3/exception.py
#
# Copyright 2021 Backblaze Inc. All Rights Reserved.
#
# License https://www.backblaze.com/using_b2_code.html
#
######################################################################
from __future__ import annotations
from b2sdk._internal.account_info.exception import AccountInfoError
from b2sdk._internal.account_info.exception import CorruptAccountInfo
from b2sdk._internal.account_info.exception import MissingAccountData
from b2sdk._internal.exception import (
AccessDenied,
AlreadyFailed,
B2ConnectionError,
B2Error,
B2HttpCallbackException,
B2HttpCallbackPostRequestException,
B2HttpCallbackPreRequestException,
B2RequestTimeout,
B2RequestTimeoutDuringUpload,
B2SimpleError,
BadDateFormat,
BadFileInfo,
BadJson,
BadRequest,
BadUploadUrl,
BrokenPipe,
BucketIdNotFound,
BucketNotAllowed,
CapabilityNotAllowed,
CapExceeded,
ChecksumMismatch,
ClockSkew,
Conflict,
ConnectionReset,
CopyArgumentsMismatch,
DestFileNewer,
DestinationDirectoryDoesntAllowOperation,
DestinationDirectoryDoesntExist,
DestinationIsADirectory,
DestinationParentIsNotADirectory,
DisablingFileLockNotSupported,
DuplicateBucketName,
EmailNotVerified,
FileAlreadyHidden,
FileNameNotAllowed,
FileNotPresent,
FileSha1Mismatch,
InvalidAuthToken,
InvalidJsonResponse,
InvalidMetadataDirective,
InvalidRange,
InvalidUploadSource,
MaxFileSizeExceeded,
MaxRetriesExceeded,
MissingPart,
NonExistentBucket,
NoPaymentHistory,
NotAllowedByAppKeyError,
PartSha1Mismatch,
PotentialS3EndpointPassedAsRealm,
RestrictedBucket,
RestrictedBucketMissing,
RetentionWriteError,
ServiceError,
SourceReplicationConflict,
SSECKeyError,
SSECKeyIdMismatchInCopy,
StorageCapExceeded,
TooManyRequests,
TransactionCapExceeded,
TransientErrorMixin,
TruncatedOutput,
Unauthorized,
UnexpectedCloudBehaviour,
UnknownError,
UnknownHost,
UnrecognizedBucketType,
UnsatisfiableRange,
UnusableFileName,
WrongEncryptionModeForBucketDefault,
interpret_b2_error,
)
from b2sdk._internal.scan.exception import EmptyDirectory
from b2sdk._internal.scan.exception import EnvironmentEncodingError
from b2sdk._internal.scan.exception import InvalidArgument
from b2sdk._internal.scan.exception import NotADirectory
from b2sdk._internal.scan.exception import UnableToCreateDirectory
from b2sdk._internal.scan.exception import UnsupportedFilename
from b2sdk._internal.scan.exception import check_invalid_argument
from b2sdk._internal.sync.exception import IncompleteSync
__all__ = (
'AccessDenied',
'AccountInfoError',
'AlreadyFailed',
'B2ConnectionError',
'B2Error',
'B2HttpCallbackException',
'B2HttpCallbackPostRequestException',
'B2HttpCallbackPreRequestException',
'B2RequestTimeout',
'B2RequestTimeoutDuringUpload',
'B2SimpleError',
'BadDateFormat',
'BadFileInfo',
'BadJson',
'BadRequest',
'BadUploadUrl',
'BrokenPipe',
'BucketIdNotFound',
'BucketNotAllowed',
'CapabilityNotAllowed',
'CapExceeded',
'ChecksumMismatch',
'ClockSkew',
'Conflict',
'ConnectionReset',
'CopyArgumentsMismatch',
'CorruptAccountInfo',
'DestFileNewer',
'DestinationDirectoryDoesntAllowOperation',
'DestinationDirectoryDoesntExist',
'DestinationIsADirectory',
'DestinationParentIsNotADirectory',
'DisablingFileLockNotSupported',
'DuplicateBucketName',
'EmailNotVerified',
'EmptyDirectory',
'EnvironmentEncodingError',
'FileAlreadyHidden',
'FileNameNotAllowed',
'FileNotPresent',
'FileSha1Mismatch',
'IncompleteSync',
'InvalidArgument',
'InvalidAuthToken',
'InvalidJsonResponse',
'InvalidMetadataDirective',
'InvalidRange',
'InvalidUploadSource',
'MaxFileSizeExceeded',
'MaxRetriesExceeded',
'MissingAccountData',
'MissingPart',
'NonExistentBucket',
'NoPaymentHistory',
'NotADirectory',
'NotAllowedByAppKeyError',
'PartSha1Mismatch',
'PotentialS3EndpointPassedAsRealm',
'RestrictedBucket',
'RestrictedBucketMissing',
'RetentionWriteError',
'ServiceError',
'SourceReplicationConflict',
'StorageCapExceeded',
'TooManyRequests',
'TransactionCapExceeded',
'TransientErrorMixin',
'TruncatedOutput',
'UnableToCreateDirectory',
'Unauthorized',
'UnexpectedCloudBehaviour',
'UnknownError',
'UnknownHost',
'UnrecognizedBucketType',
'UnsatisfiableRange',
'UnsupportedFilename',
'UnusableFileName',
'interpret_b2_error',
'check_invalid_argument',
'SSECKeyIdMismatchInCopy',
'SSECKeyError',
'WrongEncryptionModeForBucketDefault',
)
|