31 lines
1007 B
Go
31 lines
1007 B
Go
// Code generated by "stringer -type=ErrorCode -linecomment -output=errors_string.go errors.go"; DO NOT EDIT.
|
|
|
|
package ssss
|
|
|
|
import "strconv"
|
|
|
|
func _() {
|
|
// An "invalid array index" compiler error signifies that the constant values have changed.
|
|
// Re-run the stringer command to generate them again.
|
|
var x [1]struct{}
|
|
_ = x[ErrInvalidInput-16826368]
|
|
_ = x[ErrRestoreFailed-16826369]
|
|
_ = x[ErrDivideZero-16826370]
|
|
_ = x[ErrSharesMayBeTheSame-16826371]
|
|
_ = x[ErrNeedMoreShares-16826372]
|
|
_ = x[ErrSecretTooLarge-16826373]
|
|
_ = x[ErrBadShares-16826374]
|
|
}
|
|
|
|
const _ErrorCode_name = "输入不合法恢复秘密值失败除数为0输入相同分片分片数量不足秘密值太大分片错误"
|
|
|
|
var _ErrorCode_index = [...]uint8{0, 15, 36, 46, 64, 82, 97, 109}
|
|
|
|
func (i ErrorCode) String() string {
|
|
i -= 16826368
|
|
if i >= ErrorCode(len(_ErrorCode_index)-1) {
|
|
return "ErrorCode(" + strconv.FormatInt(int64(i+16826368), 10) + ")"
|
|
}
|
|
return _ErrorCode_name[_ErrorCode_index[i]:_ErrorCode_index[i+1]]
|
|
}
|