gcerrors

package
v0.12.0 Latest Latest
Warning

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

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

Documentation

Overview

Package gcerrors provides error handling for the gocache package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Error

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

Error is an error that contains a scheme and an error.

func New

func New(err error) *Error

New returns a new error with the given error.

func NewWithScheme

func NewWithScheme(scheme string, err error) *Error

NewWithScheme returns a new error with the given scheme and error.

func (*Error) Error

func (e *Error) Error() string

Error returns the error message.

func (*Error) Unwrap added in v0.10.0

func (e *Error) Unwrap() error

Unwrap returns the original error.

Jump to

Keyboard shortcuts

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