{"modulePath":"github.com/orb-community/orb","version":"v0.30.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package errors\n\n## Variables\n\n```go\nvar (\n\t// ErrUnsupportedContentType indicates unacceptable or lack of Content-Type\n\tErrUnsupportedContentType = New(\"unsupported content type\")\n\n\t// ErrInvalidQueryParams indicates invalid query parameters\n\tErrInvalidQueryParams = New(\"invalid query parameters\")\n\n\t// ErrNotFoundParam indicates that the parameter was not found in the query\n\tErrNotFoundParam = New(\"parameter not found in the query\")\n\n\t// ErrMalformedEntity indicates a malformed entity specification\n\tErrMalformedEntity = New(\"malformed entity specification\")\n\n\t// \tErrEntityNameNotFound indicates that the entity name was not found\n\tErrEntityNameNotFound = New(\"malformed entity specificiation. name not found\")\n\n\t// ErrBackendNotFound indicates that the backend field was not found\n\tErrBackendNotFound = New(\"malformed entity specification. backend field is expected\")\n\n\t// ErrInvalidBackend indicates a malformed entity specification on backend field\n\tErrInvalidBackend = New(\"malformed entity specification. backend field is invalid\")\n\n\t// ErrConfigFieldNotFound indicates that configuration field was not found\n\tErrConfigFieldNotFound = New(\"malformed entity specification. configuration field is expected\")\n\n\t// ErrExporterFieldNotFound indicates that exporter field was not found\n\tErrExporterFieldNotFound = New(\"malformed entity specification. exporter field is expected on configuration field\")\n\n\t// ErrEndpointNotFound indicates that endpoint field was not found on exporter field for otlp backend\n\tErrEndpointNotFound = New(\"malformed entity specification. endpoint field is expected on exporter field\")\n\n\t// ErrInvalidEndpoint indicates that endpoint field is not valid\n\tErrInvalidEndpoint = New(\"malformed entity specification. endpoint field is invalid\")\n\n\t// ErrAuthFieldNotFound indicates that authentication field was not found on configuration field\n\tErrAuthFieldNotFound = New(\"malformed entity specification. authentication fields are expected on configuration field\")\n\n\t// ErrAuthTypeNotFound indicates that authentication type field was not found on the authentication field\n\tErrAuthTypeNotFound = New(\"malformed entity specification: authentication type field is expected on configuration field\")\n\n\t// ErrAuthInvalidType indicates invalid authentication type\n\tErrAuthInvalidType = New(\"malformed entity specification. type key on authentication field is invalid\")\n\n\t// ErrAuthUsernameNotFound indicates that username key was not found\n\tErrAuthUsernameNotFound = New(\"malformed entity specification. username key is expected on authentication field\")\n\n\t// ErrAuthPasswordNotFound indicates that password key was not found\n\tErrAuthPasswordNotFound = New(\"malformed entity specification. password key is expected on authentication field\")\n\n\t// ErrAuthSchemeNotFound indicates that scheme key was not found\n\tErrAuthSchemeNotFound = New(\"malformed entity specification. scheme key is expected on authentication field\")\n\n\t// ErrAuthTokenNotFound indicates that token key was not found\n\tErrAuthTokenNotFound = New(\"malformed entity specification. token key is expected on authentication field\")\n\n\t// ErrAuthInvalidPasswordType indicates invalid password key on authentication field\n\tErrAuthInvalidPasswordType = New(\"malformed entity specification. password key on authentication field is invalid\")\n\n\t// ErrAuthInvalidSchemeType indicates invalid scheme key on authentication field\n\tErrAuthInvalidSchemeType = New(\"malformed entity specification. scheme key on authentication field is invalid\")\n\n\t// ErrAuthInvalidTokenType indicates invalid token key on authentication field\n\tErrAuthInvalidTokenType = New(\"malformed entity specification. token key on authentication field is invalid\")\n\n\t// ErrAuthInvalidUsernameType indicates invalid username key on authentication field\n\tErrAuthInvalidUsernameType = New(\"malformed entity specification. username key on authentication field is invalid\")\n\n\t// ErrRemoteHostNotFound indicates that remote host field was not found\n\tErrRemoteHostNotFound = New(\"malformed entity specification. remote host is expected on exporter field\")\n\n\t// ErrInvalidRemoteHost indicates that remote host field is invalid\n\tErrInvalidRemoteHost = New(\"malformed entity specification. remote host type is invalid\")\n\n\t// ErrNotFound indicates a non-existent entity request.\n\tErrNotFound = New(\"non-existent entity\")\n\n\t// ErrConflict indicates that entity already exists.\n\tErrConflict = New(\"entity already exists\")\n\n\t// ErrUpdateEntity indicates error in updating entity or entities\n\tErrUpdateEntity = New(\"update entity failed\")\n\n\t// ErrViewEntity indicates error in viewing entity or entities\n\tErrViewEntity = New(\"view entity failed\")\n\n\t// ErrUnauthorizedAccess indicates missing or invalid credentials provided\n\t// when accessing a protected resource.\n\tErrUnauthorizedAccess = New(\"missing or invalid credentials provided\")\n\n\t// ErrScanMetadata indicates problem with metadata in db.\n\tErrScanMetadata = New(\"failed to scan metadata\")\n\n\t// ErrSelectEntity indicates error while reading entity from database\n\tErrSelectEntity = New(\"select entity from db error\")\n)\n```\n\n## Functions\n\n```go\nfunc Contains(e1 error, e2 error) bool\n```\nContains inspects if e2 error is contained in any layer of e1 error\n\n```go\nfunc Wrap(wrapper error, err error) error\n```\nWrap returns an Error that wrap err with wrapper\n\n## Types\n\n```go\ntype Error interface {\n\n\t// Error implements the error interface.\n\tError() string\n\n\t// Msg returns error message\n\tMsg() string\n\n\t// Err returns wrapped error\n\tErr() Error\n}\n```\nError specifies an API that must be fulfilled by error type\n\n```go\nfunc New(text string) Error\n```\nNew returns an Error that formats as the given text.\n\n","path":"github.com/orb-community/orb/pkg/errors","name":"errors","synopsis":"","isRedistributable":true}
