SoXX
4fa936d774
All checks were successful
Gitea Build Check / Build (push) Successful in 10m58s
Signed-off-by: SoXX <soxx@fenpa.ws>
17 lines
340 B
Go
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)
|
|
}
|