2024-07-19 10:03:35 +02:00
|
|
|
package error
|
|
|
|
|
|
|
|
import "fmt"
|
|
|
|
|
|
|
|
const (
|
2024-10-15 10:38:46 +02: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-11 00:13:46 +02:00
|
|
|
|
2024-10-15 10:38:46 +02:00
|
|
|
UserSourceIDIsEmpty = "userSourceID cannot be empty"
|
|
|
|
UserSourceIsWrongLength = "userSourceID has the wrong length"
|
2024-08-11 00:13:46 +02:00
|
|
|
|
2024-08-13 14:26:12 +02:00
|
|
|
TagNameIsEmpty = "tagName cannot be empty"
|
2024-08-13 15:07:53 +02:00
|
|
|
TagTypeIsEmpty = "tagType cannot be empty"
|
2024-08-11 00:13:46 +02:00
|
|
|
TagListIsEmpty = "tagList cannot be empty"
|
|
|
|
|
2024-08-13 14:44:16 +02:00
|
|
|
TagAliasNameIsEmpty = "tagAliasName cannot be empty"
|
2024-08-11 00:13:46 +02:00
|
|
|
TagAliasListIsEmpty = "tagAliasList cannot be empty"
|
|
|
|
|
|
|
|
TagGroupListIsEmpty = "tagGroupList cannot be empty"
|
|
|
|
TagGroupNameIsEmpty = "tagGroupName cannot be empty"
|
|
|
|
|
2024-10-15 10:38:46 +02:00
|
|
|
UserFavoriteListIsEmpty = "userFavoriteList cannot be empty"
|
|
|
|
UserFavoriteIDIsEmpty = "userFavoriteID cannot be empty"
|
|
|
|
UserFavoriteIsWrongLength = "userFavoriteID has the wrong length"
|
2024-08-11 00:13:46 +02:00
|
|
|
|
2024-10-15 10:38:46 +02:00
|
|
|
PostListIsEmpty = "userFavoriteList cannot be empty"
|
2024-11-06 11:22:31 +01:00
|
|
|
PostIDIsEmpty = "PostID cannot be empty"
|
2024-10-15 10:38:46 +02:00
|
|
|
PostIDIsWrongLength = "PostID has the wrong length"
|
2024-08-09 22:45:25 +02:00
|
|
|
|
|
|
|
BatchSizeIsEmpty = "batchSize cannot be empty"
|
2024-10-14 13:05:22 +02:00
|
|
|
|
2024-10-15 10:38:46 +02:00
|
|
|
PoolIDIsEmpty = "PoolID cannot be empty"
|
|
|
|
PoolIDIsWrongLength = "PoolID has the wrong length"
|
2024-10-15 10:20:37 +02:00
|
|
|
|
|
|
|
PoolURLIsEmpty = "PoolURL cannot be empty"
|
2024-10-15 12:25:32 +02:00
|
|
|
|
|
|
|
ScrapeTaskIDIsEmpty = "ScrapeTaskID cannot be empty"
|
2024-10-15 12:36:56 +02:00
|
|
|
ScrapeTaskIDIsWrongLength = "ScrapeTaskID has the wrong length, needs to be 25 characters long"
|
2024-11-06 11:22:31 +01:00
|
|
|
|
|
|
|
PostReportIDIsEmpty = "PostReportID cannot be empty"
|
|
|
|
PostReportIDIsWrongLength = "PostReportID has the wrong length"
|
2024-07-19 10:03:35 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
type EntityValidationFailed struct {
|
|
|
|
Reason string
|
|
|
|
}
|
|
|
|
|
|
|
|
func (e EntityValidationFailed) Error() string {
|
|
|
|
return fmt.Sprintf("Entity validation failed: %s", e.Reason)
|
|
|
|
}
|