This commit is contained in:
Jabberwocky238
2026-07-15 11:06:48 -04:00
commit c746f88bbe
69 changed files with 14975 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
package gitrpc
import "encoding/json"
type rpcError struct {
Code int `json:"code"`
Message string `json:"message"`
Data json.RawMessage `json:"data,omitempty"`
}
func (e *rpcError) Error() string { return e.Message }
func newError(code int, msg string) *rpcError { return &rpcError{Code: code, Message: msg} }
const (
codeRepoNotFound = -32000
codeInvalidParams = -32602
codeInternalError = -32603
)