mirror of
https://dev.azure.com/schwarzit/schwarzit.stackit-public/_git/audit-go
synced 2026-02-08 00:57:24 +00:00
49 lines
2.2 KiB
Go
49 lines
2.2 KiB
Go
package common
|
|
|
|
import (
|
|
"errors"
|
|
)
|
|
|
|
// ErrAttributeIdentifierInvalid indicates that the object identifier
|
|
// and the identifier in the checked attribute do not match
|
|
var ErrAttributeIdentifierInvalid = errors.New("attribute identifier invalid")
|
|
|
|
// ErrAttributeTypeInvalid indicates that an invalid type has been provided.
|
|
var ErrAttributeTypeInvalid = errors.New("attribute type invalid")
|
|
|
|
// ErrCloudEventNil states that the given cloud event is nil
|
|
var ErrCloudEventNil = errors.New("cloud event nil")
|
|
|
|
// ErrEventNil indicates that the event was nil
|
|
var ErrEventNil = errors.New("event is nil")
|
|
|
|
// ErrInvalidRoutableIdentifierForSystemEvent states that the routable identifier is not valid for a system event
|
|
var ErrInvalidRoutableIdentifierForSystemEvent = errors.New("invalid identifier for system event")
|
|
|
|
// ErrMessagingApiNil states that the messaging api is nilØØ
|
|
var ErrMessagingApiNil = errors.New("messaging api nil")
|
|
|
|
// ErrObjectIdentifierNil indicates that the object identifier was nil
|
|
var ErrObjectIdentifierNil = errors.New("object identifier is nil")
|
|
|
|
// ErrObjectIdentifierVisibilityMismatch indicates that a reference mismatch was detected.
|
|
//
|
|
// Valid combinations are:
|
|
// * Visibility: Public, ObjectIdentifier: <type>
|
|
// * Visibility: Private, ObjectIdentifier: <type | system>
|
|
var ErrObjectIdentifierVisibilityMismatch = errors.New("object reference visibility mismatch")
|
|
|
|
// ErrTopicNameResolverNil states that the topic name resolve is nil
|
|
var ErrTopicNameResolverNil = errors.New("topic name resolver nil")
|
|
|
|
// ErrUnknownObjectType indicates that the given input is an unknown object type
|
|
var ErrUnknownObjectType = errors.New("unknown object type")
|
|
|
|
// ErrUnsupportedEventTypeDataAccess states that the event type "data-access" is currently not supported
|
|
var ErrUnsupportedEventTypeDataAccess = errors.New("unsupported event type data access")
|
|
|
|
// ErrUnsupportedObjectIdentifierType indicates that an unsupported object identifier type has been provided
|
|
var ErrUnsupportedObjectIdentifierType = errors.New("unsupported object identifier type")
|
|
|
|
// ErrUnsupportedRoutableType indicates that the given input is an unsupported routable type
|
|
var ErrUnsupportedRoutableType = errors.New("unsupported routable type")
|