32 lines
807 B
Python
32 lines
807 B
Python
class SupersetToolError(Exception):
|
|
"""Base exception class for all tool errors"""
|
|
|
|
class AuthenticationError(SupersetToolError):
|
|
"""Authentication related errors"""
|
|
|
|
class SupersetAPIError(SupersetToolError):
|
|
"""General API communication errors"""
|
|
|
|
class ExportError(SupersetToolError):
|
|
"""Dashboard export errors"""
|
|
|
|
class ImportError(SupersetToolError):
|
|
"""Dashboard import errors"""
|
|
|
|
class InvalidZipFormatError(SupersetToolError):
|
|
"Archive zip errors"
|
|
|
|
class DashboardNotFoundError(SupersetToolError):
|
|
"404 error"
|
|
|
|
class PermissionDeniedError(SupersetToolError):
|
|
"403 error"
|
|
|
|
class SupersetServerError(SupersetToolError):
|
|
"500 error"
|
|
|
|
class NetworkError(SupersetToolError):
|
|
"Network errors"
|
|
|
|
class DashboardImportError(SupersetToolError):
|
|
"Api import errors" |