customerror

package
v1.62.0 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2025 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Overview

Copyright 2025 SGNL.ai, Inc.

Index

Constants

This section is empty.

Variables

Refer: https://pkg.go.dev/google.golang.org/grpc/codes?utm_source=godoc for all the GRPC status codes.

Functions

func GRPCErrStatusToHTTPStatusCode added in v1.39.0

func GRPCErrStatusToHTTPStatusCode(s *status.Status, err error) int

func UpdateError

func UpdateError(err *framework.Error, modifiers ...ErrorModifier) *framework.Error

Types

type ErrorModifier

type ErrorModifier func(*framework.Error)

func WithRequestTimeoutMessage

func WithRequestTimeoutMessage(reqErr error, timeout int) ErrorModifier

Jump to

Keyboard shortcuts

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