Konfi-Castle-Kasino/pkg/models/errors.go

14 lines
301 B
Go
Raw Normal View History

2019-09-01 20:59:51 +00:00
package models
import "fmt"
2019-09-05 19:35:07 +00:00
// ErrKofiDoesNotExist represents an error where a kofi does not exist
2019-09-01 20:59:51 +00:00
type ErrKofiDoesNotExist struct {
ID int64
}
2019-09-05 19:35:07 +00:00
// Error is Go's error implementation
2019-09-01 20:59:51 +00:00
func (err ErrKofiDoesNotExist) Error() string {
return fmt.Sprintf("This kofi does not exist [ID: %n]", err.ID)
}