Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ErrorLevel ¶
type ErrorLevel error
ErrorLevel is a type that represents the severity of an error in the application.
This is the global error levels that should be used throughout the application to determine the severity of the error.
var ( ErrDebug ErrorLevel = errors.New("[DEBUG]") // ErrDebug is returned when the global level is set to DEBUG. ErrInfo ErrorLevel = errors.New("[INFO]") // ErrInfo is returned when the global level is set to INFO. ErrWarn ErrorLevel = errors.New("[WARN]") // ErrWarn is returned when the global level is set to WARN. ErrError ErrorLevel = errors.New("[ERROR]") // ErrError is returned when the global level is set to ERROR. ErrFatal ErrorLevel = errors.New("[FATAL]") // ErrFatal is returned when the global level is set to FATAL. )
Click to show internal directories.
Click to hide internal directories.