Documentation ¶
Index ¶
- func ErrorToGRPCError(err error) error
- type Code
- type Error
- func NewAlreadyExistsError(err error) *Error
- func NewError(code Code, err error) *Error
- func NewInternalError(err error) *Error
- func NewInvalidError(err error) *Error
- func NewNotFoundError(err error) *Error
- func NewPermissionDeniedError(err error) *Error
- func NewUnavailableError(err error) *Error
- func NewUnknownError(err error) *Error
- func (e *Error) AddDetail(key, value string) *Error
- func (e *Error) AddDetails(details map[string]string) *Error
- func (e *Error) CodeToGRPCCode() codes.Code
- func (e *Error) DetailsToGRPCDetails() proto.Message
- func (e Error) Error() string
- func (e *Error) SetDetails(details map[string]string) *Error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ErrorToGRPCError ¶
Types ¶
type Error ¶
func NewAlreadyExistsError ¶
func NewInternalError ¶
func NewInvalidError ¶
func NewNotFoundError ¶
func NewUnavailableError ¶
func NewUnknownError ¶
func (*Error) CodeToGRPCCode ¶
func (*Error) DetailsToGRPCDetails ¶
Click to show internal directories.
Click to hide internal directories.