packageerrors

package
v1.1.0 Latest Latest
Warning

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

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

Documentation

Overview

This is meant for package errors

Index

Constants

This section is empty.

Variables

View Source
var ErrInternal = New(500)

Functions

This section is empty.

Types

type Error

type Error struct {
	Code    int
	Message string
	Err     error
}

func New

func New(code int) *Error

func (*Error) Error

func (e *Error) Error() string

func (*Error) WithErr

func (e *Error) WithErr(err error) *Error

Jump to

Keyboard shortcuts

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