MCPcopy Index your code
hub / github.com/krau/SaveAny-Bot / Error

Method Error

api/types.go:104–106  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

102}
103
104func (e *APIError) Error() string {
105 return e.Message
106}
107
108// WriteJSON 写入 JSON 响应
109func WriteJSON(w http.ResponseWriter, statusCode int, data any) error {

Callers 15

handleAria2DlCmdFunction · 0.45
handleSilentCmdFunction · 0.45
handleSetDefaultCallbackFunction · 0.45
handleStorageCmdFunction · 0.45
handleDirCmdFunction · 0.45
handleTaskCmdFunction · 0.45
handleSilentModeFunction · 0.45
handleParserInstallCmdFunction · 0.45
handleUpdateCmdFunction · 0.45
handleUpdateCallbackFunction · 0.45
handleSaveCmdFunction · 0.45
handleBatchSaveFunction · 0.45

Calls

no outgoing calls

Tested by 11

TestProgressTrackerFunction · 0.36
TestTaskTitleFunction · 0.36
TestContextCancellationFunction · 0.36
TestTaskTitleFunction · 0.36
TestListTasksHandlerFunction · 0.36
TestListStoragesHandlerFunction · 0.36
TestEdgeCasesFunction · 0.36
TestGetTaskTypesHandlerFunction · 0.36