1 Star 4 Fork 12

王布衣/pandas

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
errors.go 449 Bytes
一键复制 编辑 原始数据 按行查看 历史
王布衣 提交于 2023-05-13 08:32 . 更新依赖库版本
package stat
import (
"gitee.com/quant1x/gox/exception"
"reflect"
)
const (
errorTypeBase = 0
)
var (
// ErrUnsupportedType 不支持的类型
ErrUnsupportedType = exception.New(errorTypeBase+0, "Unsupported type")
ErrRange = exception.New(errorTypeBase+1, "range error")
)
func Throw(tv any) *exception.Exception {
typeName := reflect.TypeOf(tv).String()
return exception.New(errorTypeBase+1, "Unsupported type: "+typeName)
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/quant1x/pandas.git
git@gitee.com:quant1x/pandas.git
quant1x
pandas
pandas
v1.0.0

搜索帮助