queryerror

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnhanceError

func EnhanceError(err error) error

EnhanceError checks if the error matches known patterns and returns an enhanced error with user-friendly hints. If no pattern matches, returns the original error unchanged.

func IsEnhancedError

func IsEnhancedError(err error) bool

IsEnhancedError checks if the error is an enhanced ErrorHint

Types

type ErrorHint

type ErrorHint struct {
	Original string
	Message  string
	Hint     string
	Example  string
}

ErrorHint represents an enhanced error with user-friendly hints

func (*ErrorHint) Error

func (e *ErrorHint) Error() string

Error implements the error interface

func (*ErrorHint) Unwrap

func (e *ErrorHint) Unwrap() error

Unwrap returns the original error message

Jump to

Keyboard shortcuts

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