{"modulePath":"github.com/2lambda123/hyperledger-fabric","version":"v1.0.0-alpha","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package errors\n\n## Constants\n\n```go\nconst MaxCallStackLength = 30\n```\nMaxCallStackLength is the maximum length of the stored call stack\n\n## Types\n\n```go\ntype CallStackError interface {\n\terror\n\tGetStack() string\n\tGetErrorCode() string\n\tGetComponentCode() string\n\tGetReasonCode() string\n\tMessage() string\n}\n```\nCallStackError is a general interface for Fabric errors\n\n```go\nfunc Error(componentcode string, reasoncode string, message string, args ...interface{}) CallStackError\n```\nError creates a CallStackError using a specific Component Code and Reason Code (no callstack is recorded)\n\n```go\nfunc ErrorWithCallstack(componentcode string, reasoncode string, message string, args ...interface{}) CallStackError\n```\nErrorWithCallstack creates a CallStackError using a specific Component Code and Reason Code and fills its callstack\n\n","path":"github.com/2lambda123/hyperledger-fabric/core/errors","name":"errors","synopsis":"","isRedistributable":true}
