nu-api/errors.go

12 lines
536 B
Go
Raw Normal View History

2023-03-06 11:21:19 +01:00
package nuapi
import "git.milar.in/milarin/adverr"
var (
ErrNoCookieSet = adverr.NewErrTmpl("ErrNoCookieSet", "no API cookie set")
ErrCurlRequestFailed = adverr.NewErrTmpl("ErrCurlRequestFailed", "curl request failed for url: '%s'")
ErrInvalidGzipData = adverr.NewErrTmpl("ErrInvalidGzipData", "gzip encoded data expected")
ErrApiRequestFailed = adverr.NewErrTmpl("ErrApiRequestFailed", "Data retrieval from NU failed")
2023-03-06 11:41:29 +01:00
ErrApiElementNotFound = adverr.NewErrTmpl("ErrApiElementNotFound", "element not found: '%s'")
2023-03-06 11:21:19 +01:00
)