kittenerror

package
v0.0.0-...-10ab71a Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2019 License: MIT Imports: 1 Imported by: 14

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Custom

type Custom struct {
	Code  int32
	Resp  string
	Descr string
}

Custom error type is needed to be able to distinguish different error types.

func NewCustom

func NewCustom(code int32, resp string, descr string) *Custom

func (*Custom) Error

func (e *Custom) Error() string

func (*Custom) GetCode

func (e *Custom) GetCode() int32

func (*Custom) GetDescr

func (e *Custom) GetDescr() string

func (*Custom) GetResp

func (e *Custom) GetResp() string

Jump to

Keyboard shortcuts

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