errors

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2017 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrCode_NULL = 0

	// Client
	ErrCode_1100 = 1100
	ErrCode_1200 = 1200
	ErrCode_1300 = 1300
	ErrCode_1400 = 1400

	ErrCode_2100 = 2100
	ErrCode_2400 = 2400
	ErrCode_2500 = 2500

	// Server
	ErrCode_5000 = 5000
	ErrCode_5100 = 5100
	ErrCode_5200 = 5200
	ErrCode_5300 = 5300
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ParameterRequiredError

type ParameterRequiredError struct {
	ParameterName string
	ParentName    string
}

ParameterRequiredError indicates that the required parameter is missing.

func (ParameterRequiredError) Error

func (e ParameterRequiredError) Error() string

Error returns the description of ParameterRequiredError.

type ParameterValueNotAllowedError

type ParameterValueNotAllowedError struct {
	ParameterName  string
	ParameterValue string
	AllowedValues  []string
}

ParameterValueNotAllowedError indicates that the parameter value is not allowed.

func (ParameterValueNotAllowedError) Error

Error returns the description of ParameterValueNotAllowedError.

type QingCloudError

type QingCloudError struct {
	RetCode int    `json:"ret_code"`
	Message string `json:"message"`
}

QingCloudError stores information of a QingCloud error response.

func (QingCloudError) Error

func (ise QingCloudError) Error() string

Error returns the description of QingCloud error response.

type QingCloudErrorInterface

type QingCloudErrorInterface interface {
	GetRetCode() int32
	GetMessage() string
	error
}

Jump to

Keyboard shortcuts

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