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

Struct Error

eval/error.go:16–24  ·  view source on GitHub ↗

Error represents an error that occurred while evaluating the DSL. It contains the name of the file and line number of where the error occurred as well as the original Go error.

Source from the content-addressed store, hash-verified

14 // It contains the name of the file and line number of where the error
15 // occurred as well as the original Go error.
16 Error struct {
17 // GoError is the original error returned by the DSL function.
18 GoError error
19 // File is the path to the file containing the user code that
20 // caused the error.
21 File string
22 // Line is the line number that caused the error.
23 Line int
24 }
25
26 // MultiError collects multiple DSL errors. It implements error.
27 MultiError []*Error

Callers 4

TestTooManyArgErrorFunction · 0.70
http_error_test.goFile · 0.50
endpoint_dsls.goFile · 0.50

Calls

no outgoing calls

Tested by 1

TestTooManyArgErrorFunction · 0.56