@@ -22,88 +22,88 @@ const (
22
22
)
23
23
24
24
// ErrorInvalidRequest returns an Error for using InvalidRequest
25
- func ErrorInvalidRequest (description string ) Error {
26
- return Error {
25
+ func ErrorInvalidRequest (description string ) * Error {
26
+ return & Error {
27
27
Error : InvalidRequest ,
28
28
ErrorDescription : description ,
29
29
}
30
30
}
31
31
32
32
// ErrorInvalidClient returns an Error for using InvalidClient
33
- func ErrorInvalidClient (description string ) Error {
34
- return Error {
33
+ func ErrorInvalidClient (description string ) * Error {
34
+ return & Error {
35
35
Error : InvalidClient ,
36
36
ErrorDescription : description ,
37
37
}
38
38
}
39
39
40
40
// ErrorInvalidIssuer returns an Error for using InvalidIssuer
41
- func ErrorInvalidIssuer (description string ) Error {
42
- return Error {
41
+ func ErrorInvalidIssuer (description string ) * Error {
42
+ return & Error {
43
43
Error : InvalidIssuer ,
44
44
ErrorDescription : description ,
45
45
}
46
46
}
47
47
48
48
// ErrorInvalidSubject returns an Error for using InvalidSubject
49
- func ErrorInvalidSubject (description string ) Error {
50
- return Error {
49
+ func ErrorInvalidSubject (description string ) * Error {
50
+ return & Error {
51
51
Error : InvalidSubject ,
52
52
ErrorDescription : description ,
53
53
}
54
54
}
55
55
56
56
// ErrorInvalidTrustAnchor returns an Error for using InvalidTrustAnchor
57
- func ErrorInvalidTrustAnchor (description string ) Error {
58
- return Error {
57
+ func ErrorInvalidTrustAnchor (description string ) * Error {
58
+ return & Error {
59
59
Error : InvalidTrustAnchor ,
60
60
ErrorDescription : description ,
61
61
}
62
62
}
63
63
64
64
// ErrorInvalidTrustChain returns an Error for using InvalidTrustChain
65
- func ErrorInvalidTrustChain (description string ) Error {
66
- return Error {
65
+ func ErrorInvalidTrustChain (description string ) * Error {
66
+ return & Error {
67
67
Error : InvalidTrustChain ,
68
68
ErrorDescription : description ,
69
69
}
70
70
}
71
71
72
72
// ErrorInvalidMetadata returns an Error for using InvalidMetadata
73
- func ErrorInvalidMetadata (description string ) Error {
74
- return Error {
73
+ func ErrorInvalidMetadata (description string ) * Error {
74
+ return & Error {
75
75
Error : InvalidMetadata ,
76
76
ErrorDescription : description ,
77
77
}
78
78
}
79
79
80
80
// ErrorNotFound returns an Error for using NotFound
81
- func ErrorNotFound (description string ) Error {
82
- return Error {
81
+ func ErrorNotFound (description string ) * Error {
82
+ return & Error {
83
83
Error : NotFound ,
84
84
ErrorDescription : description ,
85
85
}
86
86
}
87
87
88
88
// ErrorServerError returns an Error for using ServerError
89
- func ErrorServerError (description string ) Error {
90
- return Error {
89
+ func ErrorServerError (description string ) * Error {
90
+ return & Error {
91
91
Error : ServerError ,
92
92
ErrorDescription : description ,
93
93
}
94
94
}
95
95
96
96
// ErrorUnsupportedParameter returns an Error for using UnsupportedParameter
97
- func ErrorUnsupportedParameter (description string ) Error {
98
- return Error {
97
+ func ErrorUnsupportedParameter (description string ) * Error {
98
+ return & Error {
99
99
Error : UnsupportedParameter ,
100
100
ErrorDescription : description ,
101
101
}
102
102
}
103
103
104
104
// ErrorTemporarilyUnavailable returns an Error for using TemporarilyUnavailable
105
- func ErrorTemporarilyUnavailable (description string ) Error {
106
- return Error {
105
+ func ErrorTemporarilyUnavailable (description string ) * Error {
106
+ return & Error {
107
107
Error : TemporarilyUnavailable ,
108
108
ErrorDescription : description ,
109
109
}
0 commit comments