Documentation ¶
Index ¶
- Constants
- func IsBlockingError(err error) bool
- func NewEventError(err error, severity errorSeverity, subsystem errorSubSystem, fatal bool) error
- func NewEventErrorWithMessage(err error, severity errorSeverity, subsystem errorSubSystem, fatal bool, ...) error
- func WrapEventError(err error, message string) error
- type EventError
Constants ¶
View Source
const ( ErrorSeverityInfo errorSeverity = "INFO" ErrorSeverityWarning errorSeverity = "WARNING" ErrorSeverityError errorSeverity = "ERROR" )
View Source
const ( ErrorSubSystemDB errorSubSystem = "DB" ErrorSubSystemDataIntegrity errorSubSystem = "Data Integrity" ErrorSubSystemAPI errorSubSystem = "API" ErrorSubSystemFileOperations errorSubSystem = "File Operations" )
Variables ¶
This section is empty.
Functions ¶
func IsBlockingError ¶
IsBlockingError will return true for all errors for the EventError only if is error or fatal
func NewEventError ¶
NewEventError creates a new EventError
func NewEventErrorWithMessage ¶
func NewEventErrorWithMessage(err error, severity errorSeverity, subsystem errorSubSystem, fatal bool, msg string) error
NewEventErrorWithMessage creates a new EventError
func WrapEventError ¶
WrapEventError wraps error
Types ¶
type EventError ¶
type EventError struct {
// contains filtered or unexported fields
}
func (*EventError) IsError ¶
func (ee *EventError) IsError() bool
func (*EventError) IsFatal ¶
func (ee *EventError) IsFatal() bool
func (*EventError) IsInfo ¶
func (ee *EventError) IsInfo() bool
func (*EventError) IsWarn ¶
func (ee *EventError) IsWarn() bool
func (*EventError) Log ¶
func (ee *EventError) Log(log *zap.SugaredLogger)
Click to show internal directories.
Click to hide internal directories.