MCPcopy Index your code
hub / github.com/aiprodcoder/MIXAPI / ToMessage

Method ToMessage

dto/error.go:34–57  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

32}
33
34func (e GeneralErrorResponse) ToMessage() string {
35 if e.Error.Message != "" {
36 return e.Error.Message
37 }
38 if e.Message != "" {
39 return e.Message
40 }
41 if e.Msg != "" {
42 return e.Msg
43 }
44 if e.Err != "" {
45 return e.Err
46 }
47 if e.ErrorMsg != "" {
48 return e.ErrorMsg
49 }
50 if e.Header.Message != "" {
51 return e.Header.Message
52 }
53 if e.Response.Error.Message != "" {
54 return e.Response.Error.Message
55 }
56 return ""
57}

Callers 1

RelayErrorHandlerFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected