err

package
v0.0.0-...-3831edb Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseError

type BaseError struct {
	Code int
	Info string
}

func (*BaseError) Error

func (e *BaseError) Error() string

func (*BaseError) GetCode

func (e *BaseError) GetCode() int

func (*BaseError) SetCode

func (e *BaseError) SetCode(code int)

func (*BaseError) SetError

func (e *BaseError) SetError(info string)

type IError

type IError interface {
	GetCode() int
	SetCode(int)
	SetError(string)
	Error() string
}

func NewBaseError

func NewBaseError(code int, err string) IError

Jump to

Keyboard shortcuts

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