-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patherrors.go
More file actions
28 lines (23 loc) · 929 Bytes
/
errors.go
File metadata and controls
28 lines (23 loc) · 929 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
26
27
28
/*
* Copyright © 2024 weidongkl <weidongkx@gmail.com>
*/
package firewalld
import (
"errors"
)
var (
// Base errors
ErrNotSupportPermanent = errors.New("this method not supported permanent call")
ErrUnimplemented = errors.New("this method is not yet implemented")
ErrNotSupportRuntime = errors.New("this method not supported Runtime call")
// D-Bus related errors
ErrDBusConnection = errors.New("failed to establish D-Bus connection")
ErrDBusCall = errors.New("D-Bus call failed")
// Configuration errors
ErrInvalidZone = errors.New("invalid zone configuration")
ErrInvalidService = errors.New("invalid service configuration")
ErrInvalidPort = errors.New("invalid port configuration")
ErrInvalidProtocol = errors.New("invalid protocol configuration")
ErrInvalidTimeout = errors.New("invalid timeout value")
ErrInvalidRetryCount = errors.New("invalid retry count value")
)