grpcErrors

package
v0.0.0-...-dc7611c Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GrpcErr

type GrpcErr interface {
	GetStatus() codes.Code
	SetStatus(status codes.Code) GrpcErr
	GetTitle() string
	SetTitle(title string) GrpcErr
	GetStackTrace() string
	SetStackTrace(stackTrace string) GrpcErr
	GetDetail() string
	SetDetail(detail string) GrpcErr
	Error() string
	ErrBody() error
	ToJson() string
	ToGrpcResponseErr() error
}

func NewApiGrpcError

func NewApiGrpcError(status codes.Code, detail string, stackTrace string) GrpcErr

func NewApplicationGrpcError

func NewApplicationGrpcError(status codes.Code, detail string, stackTrace string) GrpcErr

func NewBadRequestGrpcError

func NewBadRequestGrpcError(detail string, stackTrace string) GrpcErr

func NewConflictGrpcError

func NewConflictGrpcError(detail string, stackTrace string) GrpcErr

func NewDomainGrpcError

func NewDomainGrpcError(status codes.Code, detail string, stackTrace string) GrpcErr

func NewForbiddenGrpcError

func NewForbiddenGrpcError(detail string, stackTrace string) GrpcErr

func NewGrpcError

func NewGrpcError(status codes.Code, title string, detail string, stackTrace string) GrpcErr

func NewInternalServerGrpcError

func NewInternalServerGrpcError(detail string, stackTrace string) GrpcErr

func NewNotFoundErrorGrpcError

func NewNotFoundErrorGrpcError(detail string, stackTrace string) GrpcErr

func NewUnAuthorizedErrorGrpcError

func NewUnAuthorizedErrorGrpcError(detail string, stackTrace string) GrpcErr

func NewValidationGrpcError

func NewValidationGrpcError(detail string, stackTrace string) GrpcErr

func ParseError

func ParseError(err error) GrpcErr

Jump to

Keyboard shortcuts

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