beta

package
v0.0.0-...-ffc0cdd Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2021 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrorProgrammerFailure

func ErrorProgrammerFailure(message string, a ...interface{}) error

ErrorProgrammerFailure returns a programmer failure Error.

func New

func New(name string) state.Stater

New sets up a new database if one doesn't already exist.

func NewError

func NewError(code string, message string, a ...interface{}) error

NewError returns a new custom Error.

Types

type Error

type Error struct {
	Code string
	Err  error
}

Error represents an error.

func (Error) Error

func (e Error) Error() string

func (Error) MarshalJSON

func (e Error) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaller for the Error type.

func (*Error) Unwrap

func (e *Error) Unwrap() error

Jump to

Keyboard shortcuts

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