-
Notifications
You must be signed in to change notification settings - Fork 0
/
errors.go
41 lines (33 loc) · 955 Bytes
/
errors.go
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
31
32
33
34
35
36
37
38
39
40
41
/*
Copyright IBM Corp. All Rights Reserved.
SPDX-License-Identifier: Apache-2.0
*/
package errors
// VSCCInfoLookupFailureError error to indicate inability
// to obtain VSCC information from LCCC
type VSCCInfoLookupFailureError struct {
Reason string
}
// Error returns reasons which lead to the failure
func (e VSCCInfoLookupFailureError) Error() string {
return e.Reason
}
// VSCCEndorsementPolicyError error to mark transaction
// failed endrosement policy check
type VSCCEndorsementPolicyError struct {
Reason string
}
// Error returns reasons which lead to the failure
func (e VSCCEndorsementPolicyError) Error() string {
return e.Reason
}
// VSCCExecutionFailureError error to indicate
// failure during attempt of executing VSCC
// endorsement policy check
type VSCCExecutionFailureError struct {
Reason string
}
// Error returns reasons which lead to the failure
func (e VSCCExecutionFailureError) Error() string {
return e.Reason
}