errors

package
v1.3.3 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package errors defines the typed error hierarchy for the blobstore. All errors returned by the public API are either one of these types or wrap one of them — callers can use errors.As to inspect them.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlreadyExistsError

type AlreadyExistsError struct {
	NamespaceID string
}

AlreadyExistsError is returned when creating a namespace that already exists.

func (*AlreadyExistsError) Error

func (e *AlreadyExistsError) Error() string

type ClosedError

type ClosedError struct{}

ClosedError is returned when an operation is attempted on a closed Store.

func (*ClosedError) Error

func (e *ClosedError) Error() string

type CorruptionError

type CorruptionError struct {
	SegmentID string
	Offset    int64
	Detail    string
}

CorruptionError is returned when a CRC or integrity check fails. This indicates physical data corruption in a segment file.

func (*CorruptionError) Error

func (e *CorruptionError) Error() string

type InvalidKeyError

type InvalidKeyError struct {
	Key    string
	Reason string
}

InvalidKeyError is returned when a key contains illegal characters or violates naming constraints.

func (*InvalidKeyError) Error

func (e *InvalidKeyError) Error() string

type InvalidNamespaceIDError

type InvalidNamespaceIDError struct {
	ID     string
	Reason string
}

InvalidNamespaceIDError is returned when a namespace ID is malformed.

func (*InvalidNamespaceIDError) Error

func (e *InvalidNamespaceIDError) Error() string

type NotFoundError

type NotFoundError struct {
	NamespaceID string
	Key         string
}

NotFoundError is returned when a key or namespace does not exist.

func (*NotFoundError) Error

func (e *NotFoundError) Error() string

type QuotaExceededError

type QuotaExceededError struct {
	NamespaceID string
	Dimension   string // "bytes", "blob_count", "blob_size"
	Limit       int64
	Requested   int64
}

QuotaExceededError is returned when a write would exceed a namespace quota.

func (*QuotaExceededError) Error

func (e *QuotaExceededError) Error() string

Jump to

Keyboard shortcuts

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