You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
podgrab/model/errors.go

20 lines
375 B

package model
import "fmt"
type PodcastAlreadyExistsError struct {
Url string
}
func (e *PodcastAlreadyExistsError) Error() string {
return fmt.Sprintf("Podcast with this url already exists")
}
type TagAlreadyExistsError struct {
Label string
}
func (e *TagAlreadyExistsError) Error() string {
return fmt.Sprintf("Tag with this label already exists : " + e.Label)
}