init: v1.0.0
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
package sm1
|
||||
|
||||
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 (
|
||||
ErrInvalidInputLength ErrorCode = 0x01001000 + iota //输入长度不合法
|
||||
)
|
||||
Reference in New Issue
Block a user