package
0.30.0
Repository: https://github.com/orb-community/orb.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.
Wrap returns an Error that wrap err with wrapper.

# Variables

ErrAuthFieldNotFound indicates that authentication field was not found on configuration field.
ErrAuthInvalidPasswordType indicates invalid password key on authentication field.
ErrAuthInvalidSchemeType indicates invalid scheme key on authentication field.
ErrAuthInvalidTokenType indicates invalid token key on authentication field.
ErrAuthInvalidType indicates invalid authentication type.
ErrAuthInvalidUsernameType indicates invalid username key on authentication field.
ErrAuthPasswordNotFound indicates that password key was not found.
ErrAuthSchemeNotFound indicates that scheme key was not found.
ErrAuthTokenNotFound indicates that token key was not found.
ErrAuthTypeNotFound indicates that authentication type field was not found on the authentication field.
ErrAuthUsernameNotFound indicates that username key was not found.
ErrBackendNotFound indicates that the backend field was not found.
ErrConfigFieldNotFound indicates that configuration field was not found.
ErrConflict indicates that entity already exists.
ErrEndpointNotFound indicates that endpoint field was not found on exporter field for otlp backend.
ErrEntityNameNotFound indicates that the entity name was not found.
ErrExporterFieldNotFound indicates that exporter field was not found.
ErrInvalidBackend indicates a malformed entity specification on backend field.
ErrInvalidEndpoint indicates that endpoint field is not valid.
ErrInvalidQueryParams indicates invalid query parameters.
ErrInvalidRemoteHost indicates that remote host field is invalid.
ErrMalformedEntity indicates a malformed entity specification.
ErrNotFound indicates a non-existent entity request.
ErrNotFoundParam indicates that the parameter was not found in the query.
ErrRemoteHostNotFound indicates that remote host field was not found.
ErrScanMetadata indicates problem with metadata in db.
ErrSelectEntity indicates error while reading entity from database.
ErrUnauthorizedAccess indicates missing or invalid credentials provided when accessing a protected resource.
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 fulfilled by error type.