Documentation
¶
Index ¶
- Variables
- func IsConfigurationError(err error) bool
- func IsGitHubAPIError(err error) bool
- func IsRateLimitError(err error) bool
- func IsRetryableError(err error) bool
- func WrapWithContext(err error, message string, context map[string]string) error
- type AppError
- func NewConfigurationError(message string, cause error) *AppError
- func NewDataProcessingError(message string, cause error) *AppError
- func NewGitHubAPIError(message string, cause error) *AppError
- func NewRateLimitError(message string, cause error) *AppError
- func NewSystemError(message string, cause error) *AppError
- func NewWorkflowError(message string, cause error) *AppError
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Configuration errors ErrMissingConfiguration = errors.New("missing required configuration") ErrInvalidConfiguration = errors.New("invalid configuration") // GitHub API errors ErrGitHubAPIAccess = errors.New("GitHub API access error") ErrGitHubRateLimit = errors.New("GitHub API rate limit exceeded") ErrGitHubAuthentication = errors.New("GitHub authentication failed") ErrGitHubResourceNotFound = errors.New("GitHub resource not found") // Workflow errors ErrWorkflowNotFound = errors.New("workflow not found") ErrWorkflowRunsEmpty = errors.New("no workflow runs found") ErrWorkflowJobsEmpty = errors.New("no workflow jobs found") // Data processing errors ErrDataProcessing = errors.New("data processing error") ErrDataParsing = errors.New("data parsing error") ErrDataValidation = errors.New("data validation error") // System errors ErrFileSystem = errors.New("file system error") ErrNetwork = errors.New("network error") ErrTimeout = errors.New("operation timeout") )
Error types for consistent error handling
Functions ¶
func IsGitHubAPIError ¶
func IsRateLimitError ¶
func IsRetryableError ¶
Types ¶
type AppError ¶
type AppError struct {
Type string `json:"type"`
Message string `json:"message"`
Operation string `json:"operation,omitempty"`
Code string `json:"code,omitempty"`
Cause error `json:"cause,omitempty"`
Context map[string]string `json:"context,omitempty"`
Retryable bool `json:"retryable"`
}
AppError represents a structured application error
func NewConfigurationError ¶
Error creation helpers
func NewDataProcessingError ¶
func NewGitHubAPIError ¶
func NewRateLimitError ¶
func NewSystemError ¶
func NewWorkflowError ¶
func (*AppError) WithContext ¶
func (*AppError) WithOperation ¶
Click to show internal directories.
Click to hide internal directories.