MCPcopy Create free account
hub / github.com/goadesign/goa / InvalidArgError

Function InvalidArgError

eval/eval.go:125–127  ·  view source on GitHub ↗

InvalidArgError records an invalid argument error. It is used by DSL functions that take dynamic arguments.

(expected string, actual any)

Source from the content-addressed store, hash-verified

123// InvalidArgError records an invalid argument error. It is used by DSL
124// functions that take dynamic arguments.
125func InvalidArgError(expected string, actual any) {
126 ReportError("cannot use %#v (type %s) as type %s", actual, reflect.TypeOf(actual), expected)
127}
128
129// TooFewArgError records a too few arguments error. It is used by DSL
130// functions that take dynamic arguments.

Callers 15

ParamsFunction · 0.92
MapParamsFunction · 0.92
BodyFunction · 0.92
methodDSLFunction · 0.92
TypeFunction · 0.92
HeadersFunction · 0.92
OneOfFunction · 0.92
ExampleFunction · 0.92
parseAttributeArgsFunction · 0.92
ResultTypeFunction · 0.92
setInterceptorAttributeFunction · 0.92
ErrorNameFunction · 0.92

Calls 1

ReportErrorFunction · 0.85

Tested by

no test coverage detected