1 Star 0 Fork 0

tx7do/go-scripts

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
errors.go 1.38 KB
一键复制 编辑 原始数据 按行查看 历史
package gpython
import "errors"
// Sentinel errors returned by the GPython engine.
var (
// ErrGPythonEngineNotInitialized is returned when an operation is invoked
// before Init or after Close.
ErrGPythonEngineNotInitialized = errors.New("gpython engine not initialized")
// ErrGPythonEngineAlreadyInitialized is returned when Init is called on an
// already-initialized engine.
ErrGPythonEngineAlreadyInitialized = errors.New("gpython engine already initialized")
// ErrGPythonContextNotInitialized is returned when the underlying py.Context
// is nil.
ErrGPythonContextNotInitialized = errors.New("gpython context not initialized")
// ErrGPythonCompileFailed is returned when compiling Python source fails.
ErrGPythonCompileFailed = errors.New("gpython compile failed")
// ErrGPythonNoScriptLoaded is returned when Execute is called but no script
// has been loaded.
ErrGPythonNoScriptLoaded = errors.New("gpython no script loaded")
// ErrGPythonRunFailed is returned when running Python code fails.
ErrGPythonRunFailed = errors.New("gpython run failed")
// ErrGPythonFunctionNotFound is returned when CallFunction cannot find the
// named function.
ErrGPythonFunctionNotFound = errors.New("gpython function not found")
// ErrGPythonGlobalNotFound is returned when GetGlobal cannot find the named
// variable.
ErrGPythonGlobalNotFound = errors.New("gpython global not found")
)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/tx7do/go-scripts.git
git@gitee.com:tx7do/go-scripts.git
tx7do
go-scripts
go-scripts
main

搜索帮助