MCPcopy Create free account
hub / github.com/evilsocket/sum / Error

Method Error

wrapper/context.go:21–26  ·  view source on GitHub ↗

Error sets this context to an error state with the given message.

(msg string)

Source from the content-addressed store, hash-verified

19
20// Error sets this context to an error state with the given message.
21func (ctx *Context) Error(msg string) {
22 ctx.Lock()
23 defer ctx.Unlock()
24 ctx.message = msg
25 ctx.isError = true
26}
27
28// IsError returns true if an error has been set in this context.
29func (ctx *Context) IsError() bool {

Calls

no outgoing calls