(c codes.Code, msg string)
| 8 | ) |
| 9 | |
| 10 | func Error(c codes.Code, msg string) error { |
| 11 | return extgrpc.WrapWithGrpcCode(errors.New(msg), c) |
| 12 | } |
| 13 | |
| 14 | func Errorf(c codes.Code, format string, args ...interface{}) error { |
| 15 | return extgrpc.WrapWithGrpcCode(errors.Newf(format, args...), c) |