zeta

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUnsupportCompressMethod = errors.New("unsupported compress method")
	ErrMistakeHashText         = errors.New("mistake hash text")
	ErrUnsupportedObject       = errors.New("unsupported object type")
	ErrMismatchedMagic         = errors.New("mismatched magic")
	ErrMismatchedVersion       = errors.New("mismatched version")
)

Functions

func IsErrMismatchedObject

func IsErrMismatchedObject(err error) bool

func IsErrNotExist

func IsErrNotExist(err error) bool

func IsErrStatusCode

func IsErrStatusCode(err error) bool

func NewErrNotExist

func NewErrNotExist(t string, oid string) error

func NewErrStatusCode

func NewErrStatusCode(statusCode int, format string, a ...any) error

Types

type ErrMismatchedObject

type ErrMismatchedObject struct {
	Want string
	Got  string
}

func (*ErrMismatchedObject) Error

func (err *ErrMismatchedObject) Error() string

type ErrNotExist

type ErrNotExist struct {
	T   string
	OID string
}

func (*ErrNotExist) Error

func (err *ErrNotExist) Error() string

type ErrStatusCode

type ErrStatusCode struct {
	Code    int
	Message string
}

func (*ErrStatusCode) Error

func (err *ErrStatusCode) Error() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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