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.
| 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 |
no outgoing calls