errors

package
v2.681.0 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package errors provides encoding error values and helpers used by go-service.

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidType = errors.New("encoding: invalid type")

ErrInvalidType indicates that an Encoder cannot operate on the provided value type.

It is returned by encoding adapters that require the input value to implement a specific interface (for example io.WriterTo/io.ReaderFrom for the bytes passthrough encoder, or proto.Message for protobuf encoders).

View Source
var ErrTrailingData = errors.New("encoding: trailing data")

ErrTrailingData indicates that a decoder found another value after the first decoded payload.

Functions

func TrailingData added in v2.447.0

func TrailingData(err error) error

TrailingData returns nil for EOF and ErrTrailingData for any extra decoded value or parse error.

Types

This section is empty.

Jump to

Keyboard shortcuts

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