blob: 87d7e535cd85222c826d09103e8e6b8b8b967751 (
plain)
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
29
30
|
package eduvpn
type detailedVPNErrorCode int8
type VPNErrorCode int8
type VPNError struct {
Code VPNErrorCode
Detailed detailedVPNError
}
func (err VPNError) Error() string {
return err.Detailed.Error()
}
func (err VPNError) Unwrap() error {
return err.Detailed
}
type detailedVPNError struct {
Code detailedVPNErrorCode
Message string
Cause error
}
func (err detailedVPNError) Error() string {
return err.Message
}
func (err detailedVPNError) Unwrap() error {
return err.Cause
}
|