package
0.2.3
Repository: https://github.com/mainfluxlabs/mproxy.git
Documentation: pkg.go.dev

# README

Errors

errors package serve to build an arbitrary long error chain in order to capture errors returned from nested service calls.

errors package contains the custom Go error interface implementation, Error. You use the Error interface to wrap two errors in a containing error as well as to test recursively if a given error contains some other error.

# Functions

Contains inspects if e2 error is contained in any layer of e1 error.
New returns an Error that formats as the given text.
No description provided by the author
Wrap returns an Error that wrap err with wrapper.

# Variables

ErrAuthentication indicates failure occurred while authenticating the entity.
ErrAuthorization indicates failure occurred while authorizing the entity.
ErrConflict indicates that entity already exists.
ErrCreateEntity indicates error in creating entity or entities.
ErrInvalidQueryParams indicates invalid query parameters.
ErrMalformedEntity indicates a malformed entity specification.
ErrNotFound indicates a non-existent entity request.
ErrNotFoundParam indicates that the parameter was not found in the query.
ErrRemoveEntity indicates error in removing entity.
ErrScanMetadata indicates problem with metadata in db.
ErrUnsupportedContentType indicates unacceptable or lack of Content-Type.
ErrUpdateEntity indicates error in updating entity or entities.
ErrViewEntity indicates error in viewing entity or entities.

# Interfaces

Error specifies an API that must be fullfiled by error type.