New returns a Status representing c and msg.
(c codes.Code, msg string)
| 74 | |
| 75 | // New returns a Status representing c and msg. |
| 76 | func New(c codes.Code, msg string) *Status { |
| 77 | return &Status{s: &spb.Status{Code: int32(c), Message: msg}} |
| 78 | } |
| 79 | |
| 80 | // Newf returns New(c, fmt.Sprintf(format, a...)). |
| 81 | func Newf(c codes.Code, format string, a ...any) *Status { |
no outgoing calls