forked from CognitionFoundry/gohfc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
errors.go
28 lines (26 loc) · 1.48 KB
/
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
/*
Copyright: Cognition Foundry. All Rights Reserved.
License: Apache License Version 2.0
*/
package gohfc
import "errors"
var (
ErrInvalidAlgorithmFamily = errors.New("invalid algorithm family")
ErrInvalidAlgorithm = errors.New("invalid algorithm for ECDSA")
ErrInvalidHash = errors.New("invalid hash algorithm")
ErrInvalidKeyType = errors.New("invalid key type is provided")
ErrEnrollment = errors.New("user enrollment failed")
ErrEnrollmentIdMissing = errors.New("enrollment id is empty")
ErrEnrolmentMissing = errors.New("enrollment ID is missing")
ErrAffiliationMissing = errors.New("affiliation is missing")
ErrTypeMissing = errors.New("type is missing")
ErrCertificateEmpty = errors.New("certificate cannot be nil")
ErrInvalidDataForParcelIdentity = errors.New("invalid data for parsing identity")
ErrInvalidOrdererName = errors.New("orderer with this name is not found")
ErrOrdererTimeout = errors.New("orderer response timeout")
ErrBadTransactionStatus = errors.New("transaction status is not 200")
ErrEndorsementsDoNotMatch = errors.New("endorsed responses are different")
ErrNoValidEndorsementFound = errors.New("invocation was not endorsed")
ErrPeerNameNotFound = errors.New("peer name is not found")
ErrUnsupportedChaincodeType = errors.New("this chainCode type is not currently supported")
)