errorx

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Code

func Code(code ErrorCode) error

func New

func New(code ErrorCode, detail string) error

Types

type Error

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

func (*Error) Code

func (e *Error) Code() ErrorCode

func (*Error) DetailString

func (e *Error) DetailString() string

func (*Error) Error

func (e *Error) Error() string

type ErrorCode

type ErrorCode interface {
	Int() int
}

Jump to

Keyboard shortcuts

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