errors

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: May 7, 2021 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

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 wraps an error and satisfies the error interface It couples more developer focused errors with more user-friendly errors. If a msg exists, you can send an e.Message() to the user, rather than the standard error

func New

func New(err error, msg string) Error

New creates an Error from an error and string

func (Error) Error

func (e Error) Error() string

Error let's the Error struct satisfy the error interface

func (Error) Message

func (e Error) Message() string

Message returns the e.msg string

func (Error) Unwrap

func (e Error) Unwrap() error

Unwrap implements error unwrapping

Jump to

Keyboard shortcuts

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