New returns a Status representing c and msg.
(c codes.Code, msg string)
| 46 | |
| 47 | // New returns a Status representing c and msg. |
| 48 | func New(c codes.Code, msg string) *Status { |
| 49 | return status.New(c, msg) |
| 50 | } |
| 51 | |
| 52 | // Newf returns New(c, fmt.Sprintf(format, a...)). |
| 53 | func Newf(c codes.Code, format string, a ...any) *Status { |