Buckets:

download
raw
1.16 kB
# SPDX-FileCopyrightText: 2023-present MTS PJSC
# SPDX-License-Identifier: Apache-2.0
from typing import Any
from syncmaster.exceptions.base import SyncmasterError
class AuthorizationError(SyncmasterError):
"""Authorization request is failed.
Examples
--------
```python
>>> from syncmaster.exceptions import AuthorizationError
>>> raise AuthorizationError("User 'test' is disabled")
Traceback (most recent call last):
syncmaster.exceptions.auth.AuthorizationError: User 'test' is disabled
```
"""
def __init__(self, message: str, details: Any = None) -> None:
self._message = message
self._details = details
@property
def message(self) -> str:
return self._message
@property
def details(self) -> Any:
return self._details
class LogoutError(SyncmasterError):
"""Error on logout request"""
def __init__(self, details: str) -> None:
self._message = "Logout error"
self._details = details
@property
def message(self) -> str:
return self._message
@property
def details(self) -> Any:
return self._details

Xet Storage Details

Size:
1.16 kB
·
Xet hash:
891d643f0baf2a135ad2455b28abbea1ff8ff0c93db709e5a4058eea3d68ce0d

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.