Versions in this module Expand all Collapse all v0 v0.3.0 Jun 12, 2026 v0.2.0 May 21, 2026 v0.1.0 May 4, 2026 Changes in this version + var ErrInvalidUTF8 = errors.New("invalid UTF-8 encoding") + var ErrUnsupportedType = errors.New("unsupported type") + var ErrUnsupportedValueType = errors.New("unsupported value type") + func HandleMarshalingError(operation, context string, err error) error + func Is(err error, errorType ErrorType) bool + func IsDuplError(err error) bool + func SafeMarshal(v any, context string) ([]byte, error) + func SafeMarshalIndent(v any, prefix, indent, context string) ([]byte, error) + func SafeMarshalIndentNilSafe(v any, prefix, indent, nilErrorMessage string) ([]byte, error) + func SafeMarshalNilSafe(v any, nilErrorMessage string) ([]byte, error) + func SafeUnmarshal(data []byte, v any, context string) error + func Wrap(err error, errorType ErrorType, msg string) error + func WrapConfig(err error, context string) error + func WrapFile(err error, file, operation string) error + func WrapIO(err error, file, operation string) error + func WrapValidation(err error, context string) error + func Wrapf(err error, errorType ErrorType, format string, args ...any) error + type DuplError struct + Cause error + File string + Line int + Message string + Stack string + Type ErrorType + func NewAnalysisError(msg string, cause error) *DuplError + func NewCancelledError(msg string, cause error) *DuplError + func NewConfigError(msg string, cause error) *DuplError + func NewDetectionError(msg string, cause error) *DuplError + func NewFileError(file, msg string, cause error) *DuplError + func NewIOError(file, msg string, cause error) *DuplError + func NewInternalError(msg string, cause error) *DuplError + func NewParseError(file string, line int, msg string, cause error) *DuplError + func NewTimeoutError(msg string, cause error) *DuplError + func NewValidationError(msg string, cause error) *DuplError + func (e *DuplError) Error() string + func (e *DuplError) Unwrap() error + type EnumValidationError struct + EnumType string + EnumValue string + func NewEnumValidationError(enumType, enumValue string, cause error) *EnumValidationError + func (e *EnumValidationError) Error() string + type ErrorType string + const AnalysisError + const CacheError + const CancelledError + const ConfigError + const DetectionError + const FileError + const IOError + const InternalError + const ParseError + const TimeoutError + const ValidationError + func (et ErrorType) String() string + type MarshalError struct + Cause error + Context string + Operation string + func (e *MarshalError) Error() string + func (e *MarshalError) Unwrap() error