error

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2020 License: Apache-2.0 Imports: 0 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseError

type BaseError interface {
	error
	Json() *Response
	SetRequestId(requestId string)
}

func JsonParseFailure

func JsonParseFailure() BaseError

func New

func New(str string) BaseError

func ParseError

func ParseError(err error) BaseError

func TenantNotFound

func TenantNotFound() BaseError

type Response

type Response struct {
	RequestId    string
	ErrorCode    string
	ErrorMessage string
	LangMessage  string
}

func (*Response) Error

func (err *Response) Error() string

func (*Response) Json

func (err *Response) Json() *Response

func (*Response) SetRequestId

func (err *Response) SetRequestId(requestId string)

Jump to

Keyboard shortcuts

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