MCPcopy Create free account
hub / github.com/DNAProject/DNA / NewErr

Function NewErr

errors/errors.go:37–39  ·  view source on GitHub ↗
(errmsg string)

Source from the content-addressed store, hash-verified

35}
36
37func NewErr(errmsg string) error {
38 return errors.New(errmsg)
39}
40
41func NewDetailErr(err error, errcode ErrCode, errmsg string) DetailError {
42 if err == nil {

Callers 15

GetTransactionFunction · 0.92
SubmitBlockMethod · 0.92
saveBlockMethod · 0.92
PreExecuteContractMethod · 0.92
GetWasmCodeMethod · 0.92
GetNeoCodeMethod · 0.92
validateDeployCodeFunction · 0.92
ContractDestoryFunction · 0.92
isContractParamValidFunction · 0.92
neovm_service.goFile · 0.92
SystemCallMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected