2024-07-19 08:03:35 +00:00
|
|
|
package error
|
|
|
|
|
|
|
|
import "fmt"
|
|
|
|
|
|
|
|
const (
|
2024-08-10 22:13:46 +00:00
|
|
|
SourceListIsEmpty = "sourceList cannot be empty"
|
|
|
|
SourceIDIsEmpty = "SourceID cannot be empty"
|
|
|
|
SourceIDToShort = "sourceID needs to be 25 characters long"
|
|
|
|
SourceDomainIsEmpty = "source Domain cannot be empty"
|
|
|
|
|
|
|
|
UserSourceIDIsEmpty = "userSourceID cannot be empty"
|
|
|
|
UserSourceIDToShort = "userSourceID needs to be 25 characters long"
|
|
|
|
|
|
|
|
TagListIsEmpty = "tagList cannot be empty"
|
|
|
|
|
|
|
|
TagAliasListIsEmpty = "tagAliasList cannot be empty"
|
|
|
|
|
|
|
|
TagGroupListIsEmpty = "tagGroupList cannot be empty"
|
|
|
|
TagGroupNameIsEmpty = "tagGroupName cannot be empty"
|
|
|
|
|
2024-08-09 20:45:25 +00:00
|
|
|
UserFavoriteListIsEmpty = "userFavoriteList cannot be empty"
|
|
|
|
UserFavoriteIDIsEmpty = "userFavoriteID cannot be empty"
|
2024-08-10 22:13:46 +00:00
|
|
|
UserFavoriteIDToShort = "userFavoriteID needs to be 25 characters long"
|
|
|
|
|
|
|
|
PostListIsEmpty = "userFavoriteList cannot be empty"
|
|
|
|
PostIDIsEmpty = "userFavoriteID cannot be empty"
|
|
|
|
PostIDToShort = "PostID needs to be 25 characters long"
|
2024-08-09 20:45:25 +00:00
|
|
|
|
|
|
|
BatchSizeIsEmpty = "batchSize 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)
|
|
|
|
}
|