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/error/validation.go
SoXX 5f9ace9bd3
All checks were successful
Gitea Build Check / Build (push) Successful in 11m38s
feat: implemented all functions
Signed-off-by: SoXX <soxx@fenpa.ws>
2024-07-01 13:42:53 +02:00

19 lines
482 B
Go

package error
import "fmt"
const (
AnthroveUserIDIsEmpty = "anthrovePostID cannot be empty"
AnthroveUserIDToShort = "anthrovePostID needs to be 25 characters long"
AnthroveSourceIDEmpty = "anthroveSourceID cannot be empty"
AnthroveSourceIDToShort = "anthroveSourceID 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)
}