errors

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotFound     = errors.New("not found")
	ErrUnauthorized = errors.New("unauthorized")

	ErrGitServerNotFound = &Error{
		Code:    "git_server_not_found",
		Message: "The Git server was not found.",
	}

	ErrSecretNotFound = &Error{
		Code:    "secret_not_found",
		Message: "The secret was not found.",
	}

	ErrBadRequest = &Error{
		Code:    "bad_request",
		Message: "The request could not be processed.",
	}
)

Predefined errors

Functions

This section is empty.

Types

type Error

type Error struct {
	Code    string
	Message string
}

Error represents a structured error with a code and message.

func (*Error) Error

func (e *Error) Error() string

Error implements the error interface.

Jump to

Keyboard shortcuts

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