serviceerr

package
v0.0.1-beta.5 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2026 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Overview

Package serviceerr 定义 service 层错误哨兵(单一真相)。

叶子包(零内部依赖):不 import internal/service 或任何上层包,否则形成 service → 本包 → service 的 import 环。service 包以别名 re-export (var ErrNotFound = serviceerr.ErrNotFound 等)保持既有引用 (errors.Is(err, service.ErrXxx))同一哨兵实例语义——80+ 调用点零改动。

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotFound           = errors.New("service: not found")
	ErrInvalidInput       = errors.New("service: invalid input")
	ErrConflict           = errors.New("service: conflict")
	ErrInvalidCredentials = errors.New("service: invalid email or password")
	ErrSignupDisabled     = errors.New("service: signup disabled")
	ErrTooManyRequests    = errors.New("service: too many requests")
	ErrMailNotConfigured  = errors.New("service: mail not configured")
	ErrMailQueueFull      = errors.New("service: mail queue full")
)

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