apierrors

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Code generated by gerr gen from errors.yaml. DO NOT EDIT.

Index

Constants

View Source
const (
	CodeUserNotFound       = "USER-001"
	CodeUnauthorized       = "AUTH-001"
	CodeInvalidInput       = "INPUT-001"
	CodeServiceUnavailable = "SVC-001"
)

Error code constants.

Variables

This section is empty.

Functions

func InvalidInput

func InvalidInput(field string, opts ...gerr.Option) error

InvalidInput creates a error.invalid_input error.

func ServiceUnavailable

func ServiceUnavailable(opts ...gerr.Option) error

ServiceUnavailable creates a error.service_unavailable error.

func Unauthorized

func Unauthorized(opts ...gerr.Option) error

Unauthorized creates a error.unauthorized error.

func UserNotFound

func UserNotFound(username string, opts ...gerr.Option) error

UserNotFound creates a error.user_not_found error.

Types

This section is empty.

Jump to

Keyboard shortcuts

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