NewError associates an error message with a given expression id, populating the source offset location of the error if possible.
(exprID int64, message string)
| 543 | |
| 544 | // NewError associates an error message with a given expression id, populating the source offset location of the error if possible. |
| 545 | func (e *exprHelper) NewError(exprID int64, message string) *common.Error { |
| 546 | return common.NewError(exprID, message, e.OffsetLocation(exprID)) |
| 547 | } |
| 548 | |
| 549 | var ( |
| 550 | // Thread-safe pool of ExprHelper values to minimize alloc overhead of ExprHelper creations. |
nothing calls this directly
no test coverage detected