syserrors

package
v0.0.0-...-1695dcb Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2021 License: MIT Imports: 0 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Error

type Error interface {
	Error() string
	Code() int
	ReasonError() error
}

type Error404

type Error404 struct {
	UnKnowError
}

func (Error404) Code

func (err Error404) Code() int

func (Error404) Error

func (err Error404) Error() string

type HasPraiseError

type HasPraiseError struct {
	UnKnowError
}

func (HasPraiseError) Code

func (err HasPraiseError) Code() int

func (HasPraiseError) Error

func (err HasPraiseError) Error() string

type NoUserError

type NoUserError struct {
	UnKnowError
}

func (NoUserError) Code

func (err NoUserError) Code() int

func (NoUserError) Error

func (err NoUserError) Error() string

type UnKnowError

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

func NewError

func NewError(msg string, err2 error) UnKnowError

func (UnKnowError) Code

func (err UnKnowError) Code() int

func (UnKnowError) Error

func (err UnKnowError) Error() string

func (UnKnowError) ReasonError

func (err UnKnowError) ReasonError() error

Jump to

Keyboard shortcuts

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