MCPcopy
hub / github.com/google/go-jsonnet / WithContext

Method WithContext

internal/errors/static_error.go:33–33  ·  view source on GitHub ↗

WithContext returns a new StaticError with additional context before the error message.

(string)

Source from the content-addressed store, hash-verified

31type StaticError interface {
32 // WithContext returns a new StaticError with additional context before the error message.
33 WithContext(string) StaticError
34 // Error returns the string representation of a StaticError.
35 Error() string
36 // Loc returns the place in the source code that triggerred the error.

Callers 2

makeUnexpectedErrorFunction · 0.65
parseParameterMethod · 0.65

Implementers 1

staticErrorinternal/errors/static_error.go

Calls

no outgoing calls

Tested by

no test coverage detected