Documentation
¶
Index ¶
- func BusinessError[R response[*zBusinessZeropsApiProtocol.Error]](resp R, err error, options ...HandleGrpcErrorOption) error
- func DaemonError(err error) (daemonInstalled bool, _ error)
- func GrpcError[T errorCode, R response[T]](resp R, err error, options ...HandleGrpcErrorOption) error
- func IsUnauthenticated(err error) bool
- func VpnError[R response[*vpnproxy.Error]](resp R, err error, options ...HandleGrpcErrorOption) error
- type Err
- type Error
- type HandleGrpcErrorOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BusinessError ¶
func BusinessError[R response[*zBusinessZeropsApiProtocol.Error]]( resp R, err error, options ...HandleGrpcErrorOption, ) error
func DaemonError ¶
func GrpcError ¶
func GrpcError[T errorCode, R response[T]]( resp R, err error, options ...HandleGrpcErrorOption, ) error
func IsUnauthenticated ¶
Types ¶
type Error ¶
func (Error) GetMessage ¶
type HandleGrpcErrorOption ¶
type HandleGrpcErrorOption func(*handleGrpcErrorConfig)
Click to show internal directories.
Click to hide internal directories.