Error sets this context to an error state with the given message.
(msg string)
| 19 | |
| 20 | // Error sets this context to an error state with the given message. |
| 21 | func (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. |
| 29 | func (ctx *Context) IsError() bool { |
no outgoing calls