2024-07-19 08:03:35 +00:00
|
|
|
package error
|
|
|
|
|
|
|
|
import "fmt"
|
|
|
|
|
|
|
|
const (
|
2024-10-15 08:38:46 +00:00
|
|
|
SourceListIsEmpty = "sourceList cannot be empty"
|
|
|
|
SourceIDIsEmpty = "SourceID cannot be empty"
|
|
|
|
SourceIDIsWrongLength = "sourceID has the wrong length"
|
|
|
|
SourceDomainIsEmpty = "source Domain cannot be empty"
|
2024-08-10 22:13:46 +00:00
|
|
|
|
2024-10-15 08:38:46 +00:00
|
|
|
UserSourceIDIsEmpty = "userSourceID cannot be empty"
|
|
|
|
UserSourceIsWrongLength = "userSourceID has the wrong length"
|
2024-08-10 22:13:46 +00:00
|
|
|
|
2024-08-13 12:26:12 +00:00
|
|
|
TagNameIsEmpty = "tagName cannot be empty"
|
2024-08-13 13:07:53 +00:00
|
|
|
TagTypeIsEmpty = "tagType cannot be empty"
|
2024-08-10 22:13:46 +00:00
|
|
|
TagListIsEmpty = "tagList cannot be empty"
|
|
|
|
|
2024-08-13 12:44:16 +00:00
|
|
|
TagAliasNameIsEmpty = "tagAliasName cannot be empty"
|
2024-08-10 22:13:46 +00:00
|
|
|
TagAliasListIsEmpty = "tagAliasList cannot be empty"
|
|
|
|
|
|
|
|
TagGroupListIsEmpty = "tagGroupList cannot be empty"
|
|
|
|
TagGroupNameIsEmpty = "tagGroupName cannot be empty"
|
|
|
|
|
2024-10-15 08:38:46 +00:00
|
|
|
UserFavoriteListIsEmpty = "userFavoriteList cannot be empty"
|
|
|
|
UserFavoriteIDIsEmpty = "userFavoriteID cannot be empty"
|
|
|
|
UserFavoriteIsWrongLength = "userFavoriteID has the wrong length"
|
2024-08-10 22:13:46 +00:00
|
|
|
|
2024-10-15 08:38:46 +00:00
|
|
|
PostListIsEmpty = "userFavoriteList cannot be empty"
|
|
|
|
PostIDIsEmpty = "userFavoriteID cannot be empty"
|
|
|
|
PostIDIsWrongLength = "PostID has the wrong length"
|
2024-08-09 20:45:25 +00:00
|
|
|
|
|
|
|
BatchSizeIsEmpty = "batchSize cannot be empty"
|
2024-10-14 11:05:22 +00:00
|
|
|
|
2024-10-15 08:38:46 +00:00
|
|
|
PoolIDIsEmpty = "PoolID cannot be empty"
|
|
|
|
PoolIDIsWrongLength = "PoolID has the wrong length"
|
2024-10-15 08:20:37 +00:00
|
|
|
|
|
|
|
PoolURLIsEmpty = "PoolURL cannot be empty"
|
2024-10-15 10:25:32 +00:00
|
|
|
|
|
|
|
ScrapeTaskIDIsEmpty = "ScrapeTaskID cannot be empty"
|
|
|
|
ScrapeTaskIDIsWrongLength = "ScrapeTaskID has the wrong length"
|
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)
|
|
|
|
}
|