-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdoc.go
49 lines (46 loc) · 2.38 KB
/
doc.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
42
43
44
45
46
47
48
49
// V0.3.5
// Author: DIEHL E.
// (C) Sony Pictures Entertainment, Nov 2020
package blockchain
import (
"errors"
)
var (
// ErrClientNotInitialized occurs when the Client is invoked before being
// initialized. This may happen if using a structure Client that was not created
// by NewClient.
ErrClientNotInitialized = errors.New("client is not initialized")
// ErrCreateUser occurs when the blockchain could not invoke
// the creation of a user.
ErrCreateUser = errors.New("cannot create new user")
// ErrNotProperNetwork occurs when the toml file does not point to a
// supported cloud.
ErrNotProperNetwork = errors.New("wrong network in toml file ")
// ErrPathChaincode occurs when ChaincodePath and ChaincodePackage are either
// both defined or both null.
ErrPathChaincode = errors.New("could not decide between ChaincodePath and ChaincodePackage")
// ErrSDKInitialized occurs trying to reinitialize the SDK.
ErrSDKInitialized = errors.New("sdk already initialized ")
// ErrSDKFailed occurs when trying to initialize fabric-sdk-go SDK. More information in the log.
ErrSDKFailed = errors.New("sdk failed initialization ")
// ErrInitClient occurs when trying to initaite a SDK client. More information in the log.
ErrInitClient = errors.New("sdk failed to init the client")
// ErrInitUser occurs when trying to initaite a SDK user. More information in the log.
ErrInitUser = errors.New("sdk failed to init the user client")
// ErrFailedChannelInit occurs when trying to instantiate and install a channel.
// More information in the log.
ErrFailedChannelInit = errors.New("failed to instantiate the channel")
// ErrFailedChaincodeInstall occurs when attempting to install a chaincode on a channel
ErrFailedChaincodeInstall = errors.New("failed to install the chaincode")
// ErrNoVault occurs when attempting to open a vault file that does not
// exist.
ErrNoVault = errors.New("no vault file")
// ErrUpgradeButNoConfig occurs when upgrade was OK but failed to overwrite the config file,
// when using option inViper in UpgradeCC.
ErrUpgradeButNoConfig = errors.New("could not update configfile")
// ErrWalletInitFailed occurs when the wallet cannot be started or populated.
ErrWalletInitFailed = errors.New("could not init the wallet")
// ErrUserAlreadyExist occurs when the user is already known and it is required
// to be created again.
ErrUserAlreadyExist = errors.New("user already exists")
)