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

errors: Error v2 (#860)

* refactor api errors
This commit is contained in:
Tony Chen
2021-04-25 20:19:23 +08:00
committed by GitHub
parent 5d9b5818f2
commit 9806191b7f
14 changed files with 277 additions and 680 deletions
-19
View File
@@ -1,19 +0,0 @@
syntax = "proto3";
package kratos.errors;
import "google/protobuf/any.proto";
option cc_enable_arenas = true;
option go_package = "github.com/go-kratos/kratos/v2/errors;errors";
option java_multiple_files = true;
option java_outer_classname = "ErrorsProto";
option java_package = "com.github.kratos.errors";
option objc_class_prefix = "KratosErrors";
message Status {
int32 code = 1;
string reason = 2;
string message = 3;
repeated google.protobuf.Any details = 4;
}