errors

package
v0.0.0-...-bef8c5f Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2025 License: Apache-2.0 Imports: 1 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrValidationError     = NewError("KUBETAIL_VALIDATION_ERROR", "Validation error")
	ErrRecordNotFound      = NewError("KUBETAIL_RECORD_NOT_FOUND", "Record not found")
	ErrUnauthenticated     = NewError("KUBETAIL_UNAUTHENTICATED", "Authentication required")
	ErrForbidden           = NewError("KUBETAIL_FORBIDDEN", "Forbidden")
	ErrWatchError          = NewError("KUBETAIL_WATCH_ERROR", "Watch error")
	ErrInternalServerError = NewError("INTERNAL_SERVER_ERROR", "Internal server error")
)

custom errors

Functions

func NewError

func NewError(code string, message string) *gqlerror.Error

Initialize custom GraphQL errors

func NewValidationError

func NewValidationError(rule string, message string) *gqlerror.Error

New validation error

Types

This section is empty.

Jump to

Keyboard shortcuts

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