# 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
CheckError will check the HTTP response status code and matches it with the given status codes.
Contains inspects if e2 error is contained in any layer of e1 error.
New returns an Error that formats as the given text.
NewSDKError returns an SDK Error that formats as the given text.
NewSDKErrorWithStatus returns an SDK Error setting the status code.
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.
ErrMalformedEntity indicates a malformed entity specification.
ErrMessage indicates an error converting a message to Mainflux message.
ErrNotFound indicates a non-existent entity request.
ErrRemoveEntity indicates error in removing entity.
ErrRetrieveEntity indicates error in viewing entity or entities.
ErrSaveMessage indicates failure occurred while saving message to database.
ErrScanMetadata indicates problem with metadata in db.
ErrUpdateEntity indicates error in updating entity or entities.