63 Star 183 Fork 3

Gitee 极速下载/hyperledger-fabric

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/hyperledger/fabric
克隆/下载
errors.go 3.83 KB
一键复制 编辑 原始数据 按行查看 历史
/*
Copyright IBM Corp. All Rights Reserved.
SPDX-License-Identifier: Apache-2.0
*/
package lscc
import "fmt"
//InvalidFunctionErr invalid function error
type InvalidFunctionErr string
func (f InvalidFunctionErr) Error() string {
return fmt.Sprintf("invalid function to lscc: %s", string(f))
}
//InvalidArgsLenErr invalid arguments length error
type InvalidArgsLenErr int
func (i InvalidArgsLenErr) Error() string {
return fmt.Sprintf("invalid number of arguments to lscc: %d", int(i))
}
//TXNotFoundErr transaction not found error
type TXNotFoundErr string
func (t TXNotFoundErr) Error() string {
return fmt.Sprintf("transaction not found: %s", string(t))
}
//InvalidDeploymentSpecErr invalid chaincode deployment spec error
type InvalidDeploymentSpecErr string
func (f InvalidDeploymentSpecErr) Error() string {
return fmt.Sprintf("invalid deployment spec: %s", string(f))
}
//ExistsErr chaincode exists error
type ExistsErr string
func (t ExistsErr) Error() string {
return fmt.Sprintf("chaincode with name '%s' already exists", string(t))
}
//NotFoundErr chaincode not registered with LSCC error
type NotFoundErr string
func (t NotFoundErr) Error() string {
return fmt.Sprintf("could not find chaincode with name '%s'", string(t))
}
//InvalidChannelNameErr invalid channel name error
type InvalidChannelNameErr string
func (f InvalidChannelNameErr) Error() string {
return fmt.Sprintf("invalid channel name: %s", string(f))
}
//InvalidChaincodeNameErr invalid chaincode name error
type InvalidChaincodeNameErr string
func (f InvalidChaincodeNameErr) Error() string {
return fmt.Sprintf("invalid chaincode name '%s'. Names must start with an alphanumeric character and can only consist of alphanumerics, '_', and '-'", string(f))
}
//InvalidVersionErr invalid version error
type InvalidVersionErr string
func (f InvalidVersionErr) Error() string {
return fmt.Sprintf("invalid chaincode version '%s'. Versions must not be empty and can only consist of alphanumerics, '_', '-', '+', and '.'", string(f))
}
//InvalidStatedbArtifactsErr invalid state database artifacts error
type InvalidStatedbArtifactsErr string
func (f InvalidStatedbArtifactsErr) Error() string {
return fmt.Sprintf("invalid state database artifact: %s", string(f))
}
//ChaincodeMismatchErr chaincode name from two places don't match
type ChaincodeMismatchErr string
func (f ChaincodeMismatchErr) Error() string {
return fmt.Sprintf("chaincode name mismatch: %s", string(f))
}
//MarshallErr error marshaling/unmarshalling
type MarshallErr string
func (m MarshallErr) Error() string {
return fmt.Sprintf("error while marshalling: %s", string(m))
}
//IdenticalVersionErr trying to upgrade to same version of Chaincode
type IdenticalVersionErr string
func (f IdenticalVersionErr) Error() string {
return fmt.Sprintf("version already exists for chaincode with name '%s'", string(f))
}
//InvalidCCOnFSError error due to mismatch between fingerprint on lscc and installed CC
type InvalidCCOnFSError string
func (f InvalidCCOnFSError) Error() string {
return fmt.Sprintf("chaincode fingerprint mismatch: %s", string(f))
}
//InstantiationPolicyMissing when no existing instantiation policy is found when upgrading CC
type InstantiationPolicyMissing string
func (f InstantiationPolicyMissing) Error() string {
return "instantiation policy missing"
}
// CollectionsConfigUpgradesNotAllowed when V1_2 capability is not enabled
type CollectionsConfigUpgradesNotAllowed string
func (f CollectionsConfigUpgradesNotAllowed) Error() string {
return "as V1_2 capability is not enabled, collection upgrades are not allowed"
}
// PrivateChannelDataNotAvailable when V1_2 or later capability is not enabled
type PrivateChannelDataNotAvailable string
func (f PrivateChannelDataNotAvailable) Error() string {
return "as V1_2 or later capability is not enabled, private channel collections and data are not available"
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/mirrors/hyperledger-fabric.git
git@gitee.com:mirrors/hyperledger-fabric.git
mirrors
hyperledger-fabric
hyperledger-fabric
v1.4.2

搜索帮助

0d507c66 1850385 C8b1a773 1850385