Debian Codegraph @

pkg/services/push/bark/bark_errors.go

raw
1 package bark
2
3 import "errors"
4
5 // Error definitions for the Bark service.
6 var (
7 // ErrFailedAPIRequest indicates the HTTP request to the Bark API failed.
8 ErrFailedAPIRequest = errors.New("failed to make API request")
9
10 // ErrUnexpectedStatus indicates an unexpected HTTP response status code.
11 ErrUnexpectedStatus = errors.New("unexpected status code")
12
13 // ErrUpdateParamsFailed indicates failure to update configuration from parameters.
14 ErrUpdateParamsFailed = errors.New("failed to update config from params")
15
16 // ErrMissingDeviceKey indicates the DeviceKey is required but was not provided.
17 ErrMissingDeviceKey = errors.New("device key is required but not specified in the configuration")
18
19 // ErrMissingHost indicates the Host is required but was not provided.
20 ErrMissingHost = errors.New("host is required but not specified in the configuration")
21 )