errors

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2026 License: GPL-3.0 Imports: 1 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlgorithmNotFoundError

type AlgorithmNotFoundError struct {
	Name string
}

AlgorithmNotFoundError indicates a checksum algorithm was not found.

func (*AlgorithmNotFoundError) Error

func (e *AlgorithmNotFoundError) Error() string

type ChecksumError

type ChecksumError struct {
	FieldName string
	Expected  uint64
	Actual    uint64
}

ChecksumError indicates a checksum verification failure.

func (*ChecksumError) Error

func (e *ChecksumError) Error() string

type FormatNotFoundError

type FormatNotFoundError struct {
	Name string
}

FormatNotFoundError indicates a display format was not found.

func (*FormatNotFoundError) Error

func (e *FormatNotFoundError) Error() string

type InsufficientDataError

type InsufficientDataError struct {
	ExpectedMin int
	ActualLen   int
}

InsufficientDataError indicates not enough bytes to decode.

func (*InsufficientDataError) Error

func (e *InsufficientDataError) Error() string

type InvalidFieldError

type InvalidFieldError struct {
	FieldName   string
	ValidRange  string
	ActualValue any
}

InvalidFieldError indicates a field value is outside its valid range.

func (*InvalidFieldError) Error

func (e *InvalidFieldError) Error() string

type PDLSemanticError

type PDLSemanticError struct {
	FieldName string
	Message   string
}

PDLSemanticError represents a semantic error in a PDL definition.

func (*PDLSemanticError) Error

func (e *PDLSemanticError) Error() string

type PDLSyntaxError

type PDLSyntaxError struct {
	Line    int
	Column  int
	Message string
	Source  string // optional: the source line for context
}

PDLSyntaxError represents a syntax error encountered during PDL parsing.

func (*PDLSyntaxError) Error

func (e *PDLSyntaxError) Error() string

type ProtocolConflictError

type ProtocolConflictError struct {
	Name string
}

ProtocolConflictError indicates a protocol name is already registered.

func (*ProtocolConflictError) Error

func (e *ProtocolConflictError) Error() string

type ProtocolNotFoundError

type ProtocolNotFoundError struct {
	Name string
}

ProtocolNotFoundError indicates a protocol name was not found in the registry.

func (*ProtocolNotFoundError) Error

func (e *ProtocolNotFoundError) Error() string

Jump to

Keyboard shortcuts

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