mesherrors

package
v0.4.25 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2023 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Error

type Error struct {
	Code                 string
	Severity             Severity
	ShortDescription     []string
	LongDescription      []string
	ProbableCause        []string
	SuggestedRemediation []string
	Stack                []string
}

func Errorf added in v0.4.6

func Errorf(code string, severity Severity, format string, args ...interface{}) *Error

func New added in v0.4.6

func New(code string, severity Severity, shortDesc, longDesc, probableCause, remediation []string) *Error

func (*Error) Error

func (e *Error) Error() string

func (*Error) StackTrace

func (e *Error) StackTrace() []string

type Severity added in v0.4.6

type Severity int
const (
	SeverityLow Severity = iota
	SeverityMedium
	SeverityHigh
)
const (
	Emergency Severity = iota // System unusable
	None                      // None severity
	Alert                     // Immediate action needed
	Critical                  // Critical condition—default level
	Fatal                     // Fatal condition
)

Jump to

Keyboard shortcuts

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