1
0
mirror of https://github.com/go-kratos/kratos.git synced 2026-05-22 10:15:24 +02:00

errors: add errors coder (#946)

* add errors coder

* rename internal http to httputil

* add errors proto
This commit is contained in:
Tony Chen
2021-05-25 00:56:31 +08:00
committed by GitHub
parent 9a3a02fc68
commit cc0221b5ce
12 changed files with 326 additions and 119 deletions
+17
View File
@@ -0,0 +1,17 @@
syntax = "proto3";
package kratos.errors;
option go_package = "github.com/go-kratos/kratos/v2/errors;errors";
option java_multiple_files = true;
option java_package = "com.github.kratos.errors";
option objc_class_prefix = "KratosErrors";
message Error {
int32 code = 1;
string message = 2;
// error details
string reason = 3;
string domain = 4;
map<string, string> metadata = 5;
};