17 lines
339 B
Go
17 lines
339 B
Go
package error
|
|
|
|
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)
|
|
}
|