-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patherrors.go
17 lines (15 loc) · 1.14 KB
/
errors.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package anitogo
import "github.com/juju/errors"
// Errors used throughout package
var (
ErrorTokenNotFound = errors.New("token not found in tokens.tokens slice")
ErrorMatchingTokenNotFound = errors.New("a matching token was not found")
ErrorInvalidIndexDerived = errors.New("the provided parameters resulted in an invalid index being derived, and thus a valid slice could not be returned")
ErrorRuneNotFoundInString = errors.New("the specified rune was not found in the specified string")
ErrorTokenizationProducedNoTokens = errors.New("tokenization produced no tokens")
ErrorInvalidEpisodeNumber = errors.New("the provided episode number string does not represent a valid episode number")
ErrorUnrecognisedOrdinal = errors.New("unrecognised ordinal provided")
ErrorKeywordManagerMapsNotInitialized = errors.New("keywordManager has uninitialised maps and thus entries could not be added to them")
ErrorKeywordNotFound = errors.New("requested keyword was not found")
ErrorPlaceholder = errors.New("this is a placeholder error")
)