errors

package
v0.0.0-...-571f2ff Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2021 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UnknownCode = -1
)

Variables

View Source
var (
	TestErr              = New(1, "Unknown")
	PluginMethodNotFound = New(2, "NewPlugin not found in plugin")
	ServerMethodNotFound = New(3, "NewServer not found in acceptor")
)

Functions

This section is empty.

Types

type Error

type Error interface {
	Error() string
	ErrorCode() int
	ErrorMsg() string
}

func NewWithErr

func NewWithErr(err error) Error

type ErrorPredefined

type ErrorPredefined struct {
	Msg  string
	Code int
}

func New

func New(code int, msg string) *ErrorPredefined

func (*ErrorPredefined) Error

func (e *ErrorPredefined) Error() string

func (*ErrorPredefined) ErrorCode

func (e *ErrorPredefined) ErrorCode() int

func (*ErrorPredefined) ErrorMsg

func (e *ErrorPredefined) ErrorMsg() string

Jump to

Keyboard shortcuts

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