errors

package
v1.7.2 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ResponseError

type ResponseError struct {
	Code      int64                  `json:"code,omitempty"`
	Message   string                 `json:"message,omitempty"`
	MessageCn string                 `json:"message_cn,omitempty"`
	Errors    []model.ApiErrorStruct `json:"errors,omitempty"`
	// contains filtered or unexported fields
}

ResponseError ...

func NewError

func NewError(code *int64, message *string, messageCn *string, errors []model.ApiErrorStruct) ResponseError

NewError ...

func (ResponseError) Error

func (e ResponseError) Error() string

Error ...

type ResponseStrictError

type ResponseStrictError struct {
	Errors string
}

ResponseError ...

func NewResponseStrictError

func NewResponseStrictError(errors string) ResponseStrictError

NewResponseStrictError ...

func (ResponseStrictError) Error

func (e ResponseStrictError) Error() string

Error ...

Jump to

Keyboard shortcuts

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