errs

package
v0.12.1-alpha2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 24, 2026 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrItemNotFound = errors.New("item not found")

ErrItemNotFound is the error used when looking up an item by ID, e.g. OID for VTs, fails because the item cannot be found.

View Source
var ErrRetryable = errors.New("(retryable error)")

embed this error to mark an error as retryable

Functions

This section is empty.

Types

type ErrConflict

type ErrConflict struct {
	Message string
	Errors  map[string]string // maps property to specific error message
}

ErrConflict indicates a conflict. If there are certain fields conflicting which are meaningful to the client, set the individual error message for a property via `Errors`, otherwise just set `Message`.

func (*ErrConflict) Error

func (e *ErrConflict) Error() string

type ErrValidation

type ErrValidation struct {
	Message string
	Errors  map[string]string // maps property to specific error message
}

func (*ErrValidation) Error

func (e *ErrValidation) Error() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL