package
0.16.0
Repository: https://github.com/absmach/supermq.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.

# Packages

No description provided by the author
No description provided by the author

# 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.
Unwrap returns the wrapper and the error by separating the Wrapper from the error.
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.
ErrEmptyPath indicates empty file path.
ErrMalformedEntity indicates a malformed entity specification.
ErrRollbackTx indicates failed to rollback transaction.
ErrStatusAlreadyAssigned indicated that the client or group has already been assigned the status.
ErrUnidentified indicates unidentified error.
ErrUnsupportedContentType indicates invalid content type.

# Interfaces

Error specifies an API that must be fullfiled by error type.
SDKError is an error type for SuperMQ SDK.