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

Method Error

expr/root.go:163–170  ·  view source on GitHub ↗

Error returns the error with the given name.

(name string)

Source from the content-addressed store, hash-verified

161
162// Error returns the error with the given name.
163func (r *RootExpr) Error(name string) *ErrorExpr {
164 for _, e := range r.Errors {
165 if e.Name == name {
166 return e
167 }
168 }
169 return nil
170}
171
172// EvalName is the name of the DSL.
173func (*RootExpr) EvalName() string {

Callers 15

TestMethodExprValidateFunction · 0.45
TestFilesDSLFunction · 0.45
TestServerExprValidateFunction · 0.45
TestHostExprValidateFunction · 0.45
TestHTTPServiceValidateFunction · 0.45
ValidateMethod · 0.45
FinalizeMethod · 0.45
TestFlowExprValidateFunction · 0.45

Calls

no outgoing calls

Tested by 15

TestMethodExprValidateFunction · 0.36
TestFilesDSLFunction · 0.36
TestServerExprValidateFunction · 0.36
TestHostExprValidateFunction · 0.36
TestHTTPServiceValidateFunction · 0.36
TestFlowExprValidateFunction · 0.36
TestSchemeExprValidateFunction · 0.36
TestExampleFunction · 0.36