Documentation
¶
Index ¶
- func As(err error, target interface{}) bool
- func GRPCErrorWithTrace(ctx context.Context, err *Error) (context.Context, error)
- func HTTPCodeToGRPCCode(httpCode Code) codes.Code
- func Is(err, target error) bool
- func ToGRPCError(err *Error) error
- type Code
- type Error
- func CastToError(err error) *Error
- func CastToErrorSafe(err error) (*Error, bool)
- func Clean(err error) *Error
- func FromGRPCError(err error) *Error
- func New(code Code, message string, traceId ...string) *Error
- func Unwrap(err error) *Error
- func Wrap(err error, code Code, message string, traceId ...string) *Error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GRPCErrorWithTrace ¶
func HTTPCodeToGRPCCode ¶
func ToGRPCError ¶
Types ¶
type Error ¶
type Error struct {
// contains filtered or unexported fields
}
func CastToError ¶
func CastToErrorSafe ¶ added in v0.0.2
func FromGRPCError ¶
Click to show internal directories.
Click to hide internal directories.