errmodel

package
v0.3.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 11, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultErrorDomain = "invenlore"

Variables

This section is empty.

Functions

func BadRequest

func BadRequest(ctx context.Context, message string, violations ...*errdetails.BadRequest_FieldViolation) error

func Error

func Error(ctx context.Context, code codes.Code, message string, details ...proto.Message) error

func ErrorInfo

func ErrorInfo(ctx context.Context, code codes.Code, message, reason string, metadata map[string]string) error

func FieldViolation

func FieldViolation(field, description string) *errdetails.BadRequest_FieldViolation

func NewStatus

func NewStatus(ctx context.Context, code codes.Code, message string, details ...proto.Message) *status.Status

func RequestIDFromContext

func RequestIDFromContext(ctx context.Context) string

func Retryable

func Retryable(ctx context.Context, code codes.Code, message string, delay time.Duration) error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL