Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /autonomi-ai_nos /nos /common /exceptions.py
| """Custom exceptions for the nos client.""" | |
| from dataclasses import dataclass | |
| class ClientException(Exception): | |
| """Base exception for the nos client.""" | |
| message: str | |
| """Exception message.""" | |
| exc: Exception = None | |
| """Exception object.""" | |
| def __str__(self) -> str: | |
| return f"{self.message}" | |
| class ServerReadyException(ClientException): | |
| """Exception raised when the server is not ready.""" | |
| def __str__(self) -> str: | |
| return f"Server not ready. {self.message}" | |
| class InputValidationException(ClientException): | |
| """Exception raised when input validation fails.""" | |
| def __str__(self) -> str: | |
| return f"Input validation failed. {self.message}" | |
| class InferenceException(ClientException): | |
| """Exception raised when inference fails.""" | |
| def __str__(self) -> str: | |
| return f"Inference failed. {self.message}" | |
Xet Storage Details
- Size:
- 906 Bytes
- Xet hash:
- 90521109d579ad3d8fbbbc43f00d53e0fae56914ec8b37a5361124026a4d8bfc
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.