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