File size: 720 Bytes
2f1a5fb
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
class UploaderCliError(Exception):
    """Base exception for uploader CLI."""

    def __init__(self, message: str, *, suggestion: str = ""):
        super().__init__(message)
        self.suggestion = suggestion


class AuthenticationError(UploaderCliError):
    """Raised when Hugging Face authentication fails."""


class RepositoryError(UploaderCliError):
    """Raised for dataset repository failures."""


class SessionError(UploaderCliError):
    """Raised when session state cannot be read or written."""


class ValidationError(UploaderCliError):
    """Raised when user input or local resources are invalid."""


class UploadError(UploaderCliError):
    """Raised when upload operations fail after retries."""