Files
test_deploy/internal/feed/errors.go
Alex Shevchuk d84487d238 1
2025-08-18 17:12:04 +03:00

18 lines
1.2 KiB
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package feed
import "errors"
// Ошибки, связанные с валидацией входных данных
var (
// ErrCancellationReasonRequired Возвращается при попытке отмены события без указания причины
ErrCancellationReasonRequired = errors.New("cancellation reason is required for feed event cancellation")
// ErrAttachmentIDRequired Возвращается при попытке отмены события без указания Id вложения
ErrAttachmentIDRequired = errors.New("attachment Id is required for feed event cancellation")
// ErrUserIDRequired Возвращается при попытке отмены события без указания Id пользователя
ErrUserIDRequired = errors.New("user Id cancellation is required for feed event cancellation")
// ErrCreationInvalidData Возвращается при попытке создания события без указания Id пользователя, или типа события, или сообщения
ErrCreationInvalidData = errors.New("invalid event data provided for creation (missing owner, type, or message)")
ErrNotFound = errors.New("not found")
)