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

Method ToErrorResponse

api/model/response.go:123–129  ·  view source on GitHub ↗
(err error)

Source from the content-addressed store, hash-verified

121}
122
123func (c ResponseCode) ToErrorResponse(err error) CommonResponse {
124 return CommonResponse{
125 Code: int(c),
126 Message: c.Message() + ": " + err.Error(),
127 Data: nil,
128 }
129}
130
131func (c ResponseCode) ToNewErrorResponse(message string) CommonResponse {
132 err := errors.New(message)

Callers 15

ToResponseMethod · 0.95
GetRecordingConfigFunction · 0.80
UpdateRecordingConfigFunction · 0.80
ListParserPlatformsFunction · 0.80
ListAllRecordingsFunction · 0.80
GetRecordingStatsFunction · 0.80
AdminImportSkillLibraryFunction · 0.80
AdminReloadSkillManagerFunction · 0.80
AdminListSkillLibrariesFunction · 0.80

Calls 3

MessageMethod · 0.95
intFunction · 0.85
ErrorMethod · 0.45

Tested by

no test coverage detected