xerror

package
v1.0.13 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package xerror contains custom implementations Error interface.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommonError

type CommonError struct {
	Code    uint32
	Message string
	Err     error
}

CommonError is custom error type.

func (*CommonError) Error

func (e *CommonError) Error() string

Error is implementation for custom type.

func (*CommonError) Is

func (e *CommonError) Is(target error) bool

Is is implementation for custom type.

func (*CommonError) Unwrap

func (e *CommonError) Unwrap() error

Unwrap is implementation for custom type.

func (*CommonError) Wrap

func (e *CommonError) Wrap(er error) error

Wrap is implementation for custom type.

func (*CommonError) Wrapf

func (e *CommonError) Wrapf(format string, args ...interface{}) error

Wrapf is implementation for custom type. nolint: goerr113

Jump to

Keyboard shortcuts

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