errs

package
v0.0.34 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	B2CloudCodes = store.NewMVKeySet()
)

Functions

This section is empty.

Types

type B2Error

type B2Error struct {
	CodeStr    string `json:"code"`
	MessageStr string `json:"message"`
	StatusId   int    `json:"status"`
	File       string
	Line       int
}

func (*B2Error) Code

func (e *B2Error) Code() string

func (*B2Error) Error

func (e *B2Error) Error() string

func (*B2Error) Message

func (e *B2Error) Message() string

func (*B2Error) SetCode

func (e *B2Error) SetCode(m string)

func (*B2Error) SetMessage

func (e *B2Error) SetMessage(m string)

func (*B2Error) SetStatus

func (e *B2Error) SetStatus(i int)

func (*B2Error) Status

func (e *B2Error) Status() int

type Error

type Error interface {
	Code() string
	SetCode(string)
	Message() string
	SetMessage(string)
	Status() int
	SetStatus(int)
	Error() string
}

func New

func New(err error, msg string) Error

Jump to

Keyboard shortcuts

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