errors

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConflictError

func NewConflictError(id string) error

NewConflictError creates a new ConflictError with the given ID.

func NewInvalidRequestError

func NewInvalidRequestError(reason string) error

NewInvalidRequestError creates a new InvalidRequestError with the given reason.

func NewNotFoundError

func NewNotFoundError(id, path string) error

NewNotFoundError creates a new NotFoundError with the given ID and path.

func NewStorageError

func NewStorageError(operation string, err error) error

NewStorageError creates a new StorageError with the given operation and error.

Types

type ConflictError

type ConflictError struct {
	ID string
}

ConflictError is returned when a resource already exists

func (*ConflictError) Error

func (e *ConflictError) Error() string

type InvalidRequestError

type InvalidRequestError struct {
	Reason string
}

InvalidRequestError is returned when the request is invalid

func (*InvalidRequestError) Error

func (e *InvalidRequestError) Error() string

type NotFoundError

type NotFoundError struct {
	ID   string
	Path string
}

NotFoundError is returned when a resource is not found

func (*NotFoundError) Error

func (e *NotFoundError) Error() string

type StorageError

type StorageError struct {
	Operation string
	Err       error
}

StorageError is returned when there's an error in storage operations

func (*StorageError) Error

func (e *StorageError) Error() string

Jump to

Keyboard shortcuts

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