github.com/gnolang/gno@v0.0.0-20240520182011-228e9d0192ce/tm2/pkg/store/errors/errors.go (about) 1 package errors 2 3 import ( 4 abci "github.com/gnolang/gno/tm2/pkg/bft/abci/types" 5 ) 6 7 type Error = abci.Error 8 9 // XXX DEPRECATE AND USE STD.ERRORS 10 func ErrInternal(msg string) Error { 11 return abci.StringError("internal error:" + msg) 12 } 13 14 func ErrTxDecode(msg string) Error { 15 return abci.StringError("txdecode error:" + msg) 16 } 17 18 func ErrUnknownRequest(msg string) Error { 19 return abci.StringError("unknownrequest error:" + msg) 20 }