errs

package
v0.0.0-...-ebd5e3c Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCredentialsError

func NewCredentialsError(message string) error

func NewTencentCloudSDKError

func NewTencentCloudSDKError(code, message, requestId string) error

Types

type AlidnsSDKError

type AlidnsSDKError struct {
	RequestId *string `json:"request_id,omitempty"`
	Recommend *string `json:"recommend,omitempty"`
	Code      *string `json:"code,omitempty"`
	Message   *string `json:"message,omitempty"`
	Stack     *string `json:"stack,omitempty"`
	// contains filtered or unexported fields
}

AlidnsSDKError struct is used save error code and msg

func (*AlidnsSDKError) Error

func (_this *AlidnsSDKError) Error() string

func (*AlidnsSDKError) SetErrMsg

func (_this *AlidnsSDKError) SetErrMsg(msg string)

SetErrMsg Set ErrMsg by msg

type CredntialsError

type CredntialsError struct {
	Message *string
}

func (*CredntialsError) Error

func (_this *CredntialsError) Error() string

type TencentCloudSDKError

type TencentCloudSDKError struct {
	Code      string
	Message   string
	RequestId string
}

func (*TencentCloudSDKError) Error

func (e *TencentCloudSDKError) Error() string

func (*TencentCloudSDKError) GetCode

func (e *TencentCloudSDKError) GetCode() string

func (*TencentCloudSDKError) GetMessage

func (e *TencentCloudSDKError) GetMessage() string

func (*TencentCloudSDKError) GetRequestId

func (e *TencentCloudSDKError) GetRequestId() string

type VdnsError

type VdnsError struct {
	// contains filtered or unexported fields
}

func NewApiErrorFromError

func NewApiErrorFromError(e error) *VdnsError

func NewVdnsError

func NewVdnsError(message string) *VdnsError

func (*VdnsError) Error

func (_this *VdnsError) Error() string

Jump to

Keyboard shortcuts

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