2024-07-19 08:03:35 +00:00
|
|
|
package error
|
|
|
|
|
|
|
|
import "fmt"
|
|
|
|
|
|
|
|
const (
|
2024-08-09 20:14:13 +00:00
|
|
|
UserIDIsEmpty = "anthrovePostID cannot be empty"
|
|
|
|
UserIDToShort = "anthrovePostID needs to be 25 characters long"
|
|
|
|
SourceIDEmpty = "anthroveSourceID cannot be empty"
|
|
|
|
SourceIDToShort = "anthroveSourceID needs to be 25 characters long"
|
|
|
|
UserSourceIDEmpty = "anthroveUserSourceID cannot be empty"
|
|
|
|
UserSourceIDToShort = "anthroveUserSourceID needs to be 25 characters long"
|
|
|
|
TagIDEmpty = "tagID cannot be empty"
|
2024-07-19 08:03:35 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
type EntityValidationFailed struct {
|
|
|
|
Reason string
|
|
|
|
}
|
|
|
|
|
|
|
|
func (e EntityValidationFailed) Error() string {
|
|
|
|
return fmt.Sprintf("Entity validation failed: %s", e.Reason)
|
|
|
|
}
|