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
Click to show internal directories.
Click to hide internal directories.