Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrorSeverity ¶
type ErrorSeverity int
const ( SeverityInfo ErrorSeverity = iota SeverityWarning SeverityError SeverityCritical )
type StructuredError ¶
type StructuredError struct {
Type ErrorType
Severity ErrorSeverity
Message string
Section string
Line int
RawData string
Timestamp time.Time
Context map[string]interface{}
}
func NewError ¶
func NewError(errorType ErrorType, message string, severity ErrorSeverity, section string, line int, rawData string, context map[string]interface{}) *StructuredError
func (*StructuredError) Error ¶
func (e *StructuredError) Error() string
Click to show internal directories.
Click to hide internal directories.