func (e *LimitExceededError) Error() string {
	return fmt.Sprintf("%s:%s: %s", e.path, e.pos, e.msg)
}
Error implements the interface error for the LimitError.
package compiler
import (
	"fmt"
	"github.com/open2b/scriggo/ast"
	"github.com/open2b/scriggo/internal/runtime"
)
type LimitExceededError struct {
	pos *ast.Position
	path string
	msg string
}
func newLimitExceededError(pos *runtime.Position, path, format string, a ...interface{}) *LimitExceededError {
	astPos := &ast.Position{
		Line:   pos.Line,
		Column: pos.Column,
		Start:  pos.Start,
		End:    pos.End,
	}
	return &LimitExceededError{
		pos:  astPos,
		path: path,
		msg:  fmt.Sprintf(format, a...),
	}
}
func (e *LimitExceededError) Position() ast.Position {
	return *e.pos
}
func (e *LimitExceededError) Path() string {
	return e.path
}
func (e *LimitExceededError) Message() string {
	return e.msg
}