MCPcopy
hub / github.com/davyxu/tabtoy / Error

Method Error

v3/report/error.go:23–42  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

21}
22
23func (self *TableError) Error() string {
24
25 var sb strings.Builder
26
27 sb.WriteString("TableError.")
28 sb.WriteString(self.ID)
29 sb.WriteString(" ")
30 sb.WriteString(getErrorDesc(self.ID))
31 sb.WriteString(" | ")
32
33 for index, c := range self.context {
34 if index > 0 {
35 sb.WriteString(" ")
36 }
37
38 sb.WriteString(fmt.Sprintf("%+v", c))
39 }
40
41 return sb.String()
42}
43
44func ReportError(id string, context ...interface{}) *TableError {
45

Callers 15

ParseDataMethod · 0.80
parseFieldValueFunction · 0.80
NewFileFunction · 0.80
WriteFileMethod · 0.80
RunMethod · 0.80
GenerateFunction · 0.80
GenerateFunction · 0.80
GenerateFunction · 0.80
GenerateFunction · 0.80
OutputFunction · 0.80
GenerateFunction · 0.80
MustGotErrorMethod · 0.80

Calls 3

getErrorDescFunction · 0.85
WriteStringMethod · 0.45
StringMethod · 0.45

Tested by

no test coverage detected