events

package
v0.0.0-...-acaaaf6 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

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

func IsBlockingError(err error) bool

IsBlockingError will return true for all errors for the EventError only if is error or fatal

func NewEventError

func NewEventError(err error, severity errorSeverity, subsystem errorSubSystem, fatal bool) error

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

func WrapEventError(err error, message string) error

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)

Jump to

Keyboard shortcuts

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