errors

package
v0.13.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 7, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package errors defines sentinel errors and domain types for the application. uses cockroachdb/errors for automatic stack trace capture.

Index

Constants

This section is empty.

Variables

View Source
var (
	ValidationError = validationError{}
	AuthError       = authError{}
	APIError        = apiError{}
	ConfigError     = configError{}
)

domain type instances for error marking

View Source
var (
	ErrMissingPRData       = errors.Mark(errors.New("pr data missing"), ValidationError)
	ErrInvalidSignature    = errors.Mark(errors.New("invalid webhook signature"), AuthError)
	ErrMissingSignature    = errors.Mark(errors.New("signature missing but secret configured"), AuthError)
	ErrUnexpectedSignature = errors.Mark(errors.New("signature provided but secret not configured"), AuthError)
	ErrTeamNotFound        = errors.Mark(errors.New("github team not found"), APIError)
	ErrGroupNotFound       = errors.Mark(errors.New("okta group not found"), APIError)
	ErrInvalidPattern      = errors.Mark(errors.New("invalid regex pattern"), ValidationError)
	ErrEmptyPattern        = errors.Mark(errors.New("pattern cannot be empty"), ValidationError)
	ErrClientNotInit       = errors.Mark(errors.New("client not initialized"), ConfigError)
	ErrInvalidEventType    = errors.Mark(errors.New("unknown event type"), ValidationError)
	ErrMissingOAuthCreds   = errors.Mark(errors.New("must provide either api token or oauth credentials"), ConfigError)
	ErrOAuthTokenExpired   = errors.Mark(errors.New("oauth token expired"), AuthError)
)

sentinel errors for common failure cases

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL