Files
xgcl/tpc/sm2/sm2m/errors.go
T
2026-05-27 23:03:00 +08:00

18 lines
348 B
Go

package sm2m
import (
"xdx.jelly/xgcl/gerrors"
)
//go:generate stringer -type=ErrorCode -linecomment -output=errors_string.go errors.go
type ErrorCode gerrors.ErrorCode
func (e ErrorCode) Error() string {
return gerrors.Format(uint32(e), e.String())
}
// error codes
const (
ErrInvalidInput ErrorCode = 0x0100f000 + iota //输入不合法
)