-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy patherrors.go
More file actions
25 lines (17 loc) · 942 Bytes
/
errors.go
File metadata and controls
25 lines (17 loc) · 942 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package wifi
import "errors"
// ErrIncorrectPassphrase is returned when a connection fails due to an
// incorrect passphrase.
var ErrIncorrectPassphrase = errors.New("incorrect passphrase")
// ErrWirelessDisabled is returned when the wireless radio is disabled.
var ErrWirelessDisabled = errors.New("wireless disabled")
// ErrNotFound is returned when a network is not found.
var ErrNotFound = errors.New("not found")
// ErrNotAvailable is returned when a backend is not available.
var ErrNotAvailable = errors.New("not available")
// ErrOperationFailed is returned when an operation fails.
var ErrOperationFailed = errors.New("operation failed")
// ErrNotSupported is returned when a feature is not supported.
var ErrNotSupported = errors.New("not supported")
// ErrAccessPointMismatch is returned when trying to merge connections with different SSID or security.
var ErrAccessPointMismatch = errors.New("SSID or security mismatch")