MCPcopy Create free account
hub / github.com/goplus/py / Error

Struct Error

error.go:17–21  ·  view source on GitHub ↗

Error represents a Python exception as a Go struct that implements the error interface. It allows Go code to handle Python exceptions in an idiomatic Go fashion.

Source from the content-addressed store, hash-verified

15// error interface. It allows Go code to handle Python exceptions in an
16// idiomatic Go fashion.
17type Error struct {
18 Kind *Base
19 Value *Base
20 tb *C.PyObject
21}
22
23func newError(kind, val *Base, tb *C.PyObject) *Error {
24 e := &Error{kind, val, tb}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected