Documentation ¶
Index ¶
- Constants
- func NewDebugInfo(stacks []string, msg string) *errdetails.DebugInfo
- func NewLocalizedMsg(ctx context.Context, msg Message) *errdetails.LocalizedMessage
- func NewLocalizedMsgWithLang(languages []string, msg Message) *errdetails.LocalizedMessage
- func NewReason(reason Reason, meta map[string]string) *errdetails.ErrorInfo
- type Error
- type Message
- type Reason
Constants ¶
View Source
const (
// The operation was cancelled, typically by the caller.
StatusClientClosed = 499
)
Variables ¶
This section is empty.
Functions ¶
func NewDebugInfo ¶
func NewDebugInfo(stacks []string, msg string) *errdetails.DebugInfo
func NewLocalizedMsg ¶
func NewLocalizedMsg(ctx context.Context, msg Message) *errdetails.LocalizedMessage
func NewLocalizedMsgWithLang ¶
func NewLocalizedMsgWithLang(languages []string, msg Message) *errdetails.LocalizedMessage
Types ¶
type Error ¶
type Error struct {
// contains filtered or unexported fields
}
func (*Error) GRPCStatus ¶
func (*Error) WithDetails ¶
Click to show internal directories.
Click to hide internal directories.