MCPcopy Index your code
hub / github.com/53AI/53AIHub / ToNewErrorResponse

Method ToNewErrorResponse

api/model/response.go:131–138  ·  view source on GitHub ↗
(message string)

Source from the content-addressed store, hash-verified

129}
130
131func (c ResponseCode) ToNewErrorResponse(message string) CommonResponse {
132 err := errors.New(message)
133 return CommonResponse{
134 Code: int(c),
135 Message: c.Message() + ": " + err.Error(),
136 Data: nil,
137 }
138}
139
140func (c ResponseCode) ToOpenAIErrorRespone(data interface{}) OpenAIErrorResponse {
141 msg := c.Message()

Callers 15

HashidsDecoderFunction · 0.80
GetOrderFunction · 0.80
UpdateOrderStatusFunction · 0.80
DeleteOrderFunction · 0.80
ConfirmManualPaymentFunction · 0.80
QueryTradeOrderFunction · 0.80
RefunTradeOrderFunction · 0.80
RepairEntityVectorsByEIDFunction · 0.80
SyncOrganizationFunction · 0.80
GetSyncProgressFunction · 0.80

Calls 4

MessageMethod · 0.95
intFunction · 0.85
NewMethod · 0.45
ErrorMethod · 0.45

Tested by

no test coverage detected