errors

package
v0.49.1 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2025 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ObjectID

type ObjectID oid.ID

ObjectID is an object ID as error.

func (ObjectID) Error

func (x ObjectID) Error() string

Error returns string-encoded object ID.

type ParentObjectError

type ParentObjectError struct {
	// contains filtered or unexported fields
}

ParentObjectError is an error indicating some object as a parent for some reason.

var ErrParentObject ParentObjectError

ErrParentObject allows to check whether error is ParentObjectError via errors.Is.

func NewParentObjectError

func NewParentObjectError(cause error) ParentObjectError

NewParentObjectError constructs ParentObjectError from given cause.

func (ParentObjectError) Is

func (x ParentObjectError) Is(target error) bool

Unwrap implements interface for errors.Is.

func (ParentObjectError) Unwrap

func (x ParentObjectError) Unwrap() error

Unwrap implements interface for errors package funcs.

Jump to

Keyboard shortcuts

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