errstring

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package errstring defines a simple error struct

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 the base type for rig errors

func New

func New(msg string) *Error

New creates a new error

func (*Error) Error

func (e *Error) Error() string

Error implements the error interface

func (*Error) Unwrap

func (e *Error) Unwrap() error

func (*Error) Wrap

func (e *Error) Wrap(errB error) error

Wrap wraps another error with this error

func (*Error) Wrapf

func (e *Error) Wrapf(msg string, args ...any) error

Wrapf is a shortcut for Wrap(fmt.Errorf("...", ...))

Jump to

Keyboard shortcuts

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