NewError associates an error message with a given expression id, populating the source offset location of the error if possible.
(exprID int64, message string)
| 502 | |
| 503 | // NewError associates an error message with a given expression id, populating the source offset location of the error if possible. |
| 504 | func (e *exprHelper) NewError(exprID int64, message string) *common.Error { |
| 505 | return common.NewError(exprID, message, e.OffsetLocation(exprID)) |
| 506 | } |
| 507 | |
| 508 | var ( |
| 509 | // Thread-safe pool of ExprHelper values to minimize alloc overhead of ExprHelper creations. |
nothing calls this directly
no test coverage detected