lakefs.exceptions module¶
Exceptions module
- exception lakefs.exceptions.BadRequestException(status=None, reason=None, body=None)[source]¶
Bases:
ServerExceptionBad Request
-
body:
dict¶
-
reason:
str¶
-
status_code:
int¶
-
body:
- exception lakefs.exceptions.ConflictException(status=None, reason=None, body=None)[source]¶
Bases:
ServerExceptionResource / request conflict
-
body:
dict¶
-
reason:
str¶
-
status_code:
int¶
-
body:
- exception lakefs.exceptions.ForbiddenException(status=None, reason=None, body=None)[source]¶
Bases:
ServerExceptionOperation not permitted
-
body:
dict¶
-
reason:
str¶
-
status_code:
int¶
-
body:
- exception lakefs.exceptions.ImportManagerException[source]¶
Bases:
LakeFSExceptionImport manager exceptions that are not originated from the SDK
- exception lakefs.exceptions.InvalidEnvVarFormat[source]¶
Bases:
LakeFSExceptionRaised when the passed env var is not of expected format
- exception lakefs.exceptions.InvalidRangeException(status=None, reason=None, body=None)[source]¶
Bases:
ServerException,OSErrorRaised when the reference could not be found in the lakeFS server
-
body:
dict¶
-
reason:
str¶
-
status_code:
int¶
-
body:
- exception lakefs.exceptions.LakeFSException[source]¶
Bases:
ExceptionBase exception for all SDK exceptions
- exception lakefs.exceptions.NoAuthenticationFound[source]¶
Bases:
LakeFSExceptionRaised when no authentication method could be found on Client instantiation
- exception lakefs.exceptions.NotAuthorizedException(status=None, reason=None, body=None)[source]¶
Bases:
ServerExceptionUser not authorized to perform operation
-
body:
dict¶
-
reason:
str¶
-
status_code:
int¶
-
body:
- exception lakefs.exceptions.NotFoundException(status=None, reason=None, body=None)[source]¶
Bases:
ServerExceptionResource could not be found on lakeFS server
-
body:
dict¶
-
reason:
str¶
-
status_code:
int¶
-
body:
- exception lakefs.exceptions.ObjectExistsException(status=None, reason=None, body=None)[source]¶
Bases:
ServerException,FileExistsErrorRaised when Object(’…’).create(mode=’x’) and object exists
-
body:
dict¶
-
reason:
str¶
-
status_code:
int¶
-
body:
- exception lakefs.exceptions.ObjectNotFoundException(status=None, reason=None, body=None)[source]¶
Bases:
NotFoundException,FileNotFoundErrorRaised when the currently used object no longer exist in the lakeFS server
-
body:
dict¶
-
reason:
str¶
-
status_code:
int¶
-
body:
- exception lakefs.exceptions.PermissionException(status=None, reason=None, body=None)[source]¶
Bases:
NotAuthorizedException,PermissionErrorRaised by Object.open() and Object.create() for compatibility with python
-
body:
dict¶
-
reason:
str¶
-
status_code:
int¶
-
body:
- exception lakefs.exceptions.ServerException(status=None, reason=None, body=None)[source]¶
Bases:
LakeFSExceptionGeneric exception when no other exception is applicable
-
body:
dict¶
-
reason:
str¶
-
status_code:
int¶
-
body:
- exception lakefs.exceptions.TransactionException[source]¶
Bases:
LakeFSExceptionExceptions during the transaction commit logic
- exception lakefs.exceptions.UnsupportedCredentialsProviderType[source]¶
Bases:
LakeFSExceptionRaised when the credentials provider type is not supported
- exception lakefs.exceptions.UnsupportedOperationException(status=None, reason=None, body=None)[source]¶
Bases:
ServerExceptionOperation not supported by lakeFS server or SDK
-
body:
dict¶
-
reason:
str¶
-
status_code:
int¶
-
body:
- lakefs.exceptions.api_exception_handler(custom_handler=None)[source]¶
Contexts which converts lakefs_sdk API exceptions to LakeFS exceptions and handles them.
- Parameters:
custom_handler (
Optional[Callable[[LakeFSException],LakeFSException]]) – Optional handler which can be used to provide custom behavior for specific exceptions. If custom_handler returns an exception, this function will raise the exception at the end of the custom_handler invocation.