ai-courseware/eino-project/internal/biz/errors.go

23 lines
658 B
Go

package biz
import "errors"
var (
// ErrOrderNotFound 订单未找到错误
ErrOrderNotFound = errors.New("order not found")
// ErrSessionNotFound 会话未找到错误
ErrSessionNotFound = errors.New("session not found")
// ErrInvalidMessage 无效消息错误
ErrInvalidMessage = errors.New("invalid message")
// ErrKnowledgeNotFound 知识库文档未找到错误
ErrKnowledgeNotFound = errors.New("knowledge document not found")
// ErrUploadFailed 文件上传失败错误
ErrUploadFailed = errors.New("file upload failed")
// ErrServiceUnavailable 服务不可用错误
ErrServiceUnavailable = errors.New("service unavailable")
)