errors

package
v1.7.45 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: Apache-2.0 Imports: 1 Imported by: 37

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 added in v1.4.3

type ResponseStrictError struct {
	Errors string
}

ResponseError ...

func NewResponseStrictError added in v1.4.3

func NewResponseStrictError(errors string) ResponseStrictError

NewResponseStrictError ...

func (ResponseStrictError) Error added in v1.4.3

func (e ResponseStrictError) Error() string

Error ...

Jump to

Keyboard shortcuts

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