github.com/0chain/gosdk@v1.17.11/wasmsdk/jsbridge/error.go (about) 1 //go:build js && wasm 2 // +build js,wasm 3 4 package jsbridge 5 6 import "errors" 7 8 var ( 9 // ErrMismatchedInputLength the length of input are mismatched 10 ErrMismatchedInputLength = errors.New("binder: mismatched input length") 11 12 // ErrMismatchedOutputLength the length of output are mismatched 13 ErrMismatchedOutputLength = errors.New("binder: mismatched output length") 14 15 // ErrBinderNotImplemented the type binder is not implemented yet 16 ErrBinderNotImplemented = errors.New("binder: not impelmented") 17 18 // ErrFuncNotSupported the type function is not supported yet 19 ErrFuncNotSupported = errors.New("func: not supported") 20 21 // ErrIsNotFunc bind works with func only 22 ErrIsNotFunc = errors.New("func: bind works with func only") 23 )