This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
otter-space-sdk/pkg/errors/validation.go
SoXX 4fa936d774
All checks were successful
Gitea Build Check / Build (push) Successful in 10m58s
fix(errors): added const
Signed-off-by: SoXX <soxx@fenpa.ws>
2024-06-26 09:20:52 +02:00

17 lines
340 B
Go

package errors
import "fmt"
const (
AnthroveUserIDIsEmpty = "anthrovePostID cannot be empty"
AnthroveUserIDToShort = "anthrovePostID needs to be 25 characters long"
)
type EntityValidationFailed struct {
Reason string
}
func (e EntityValidationFailed) Error() string {
return fmt.Sprintf("Entity validation failed: %s", e.Reason)
}