mperr

package
Version: v0.0.0-...-3faa710 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2020 License: BSD-3-Clause Imports: 0 Imported by: 0

Documentation

Overview

Package mperr constant User: 姜伟 Time: 2020-02-19 04:51:13

Package mperr error User: 姜伟 Time: 2020-02-19 04:26:32

Index

Constants

View Source
const (

	// TypeInnerJSON JSON
	TypeInnerJSON uint = 1
	// TypeInnerServer 服务
	TypeInnerServer uint = 2
	// TypeInnerValidator 校验器
	TypeInnerValidator uint = 3

	// TypeMapTencent 腾讯
	TypeMapTencent uint = 10000
	// TypeMapGaoDe 高德
	TypeMapGaoDe uint = 10001
	// TypeMapBaiDu 百度
	TypeMapBaiDu uint = 10002

	// TypeSmsAliYun 阿里云
	TypeSmsAliYun uint = 10100
	// TypeSmsDaYu 阿里大鱼
	TypeSmsDaYu uint = 10101
	// TypeSmsYun253 253云
	TypeSmsYun253 uint = 10102

	// TypeCacheMem memcache
	TypeCacheMem uint = 10300
	// TypeCacheRedis redis
	TypeCacheRedis uint = 10301

	// TypeDbMysql mysql
	TypeDbMysql uint = 10400
	// TypeDbMonGo mongo
	TypeDbMonGo uint = 10401

	// TypeConfigViper viper
	TypeConfigViper uint = 10500

	// TypeAliOpen 阿里云开放平台
	TypeAliOpen uint = 10600

	// TypeAliPay 支付宝
	TypeAliPay uint = 10800
	// TypeAliPayAuth 授权
	TypeAliPayAuth uint = 10801
	// TypeAliPayFund 资金
	TypeAliPayFund uint = 10802
	// TypeAliPayLife 生活号
	TypeAliPayLife uint = 10803
	// TypeAliPayMarket 店铺
	TypeAliPayMarket uint = 10804
	// TypeAliPayMaterial 物料
	TypeAliPayMaterial uint = 10805
	// TypeAliPayTrade 支付
	TypeAliPayTrade uint = 10806

	// TypeWx 微信
	TypeWx uint = 11000
	// TypeWxAccount 公众号
	TypeWxAccount uint = 11001
	// TypeWxCorp 企业号
	TypeWxCorp uint = 11002
	// TypeWxProvider 企业号服务商
	TypeWxProvider uint = 11003
	// TypeWxMini 小程序
	TypeWxMini uint = 11004
	// TypeWxOpen 开放平台
	TypeWxOpen uint = 11005
	// TypeWxOpenAccount 开放平台公众号
	TypeWxOpenAccount uint = 11006
	// TypeWxOpenMini 开放平台小程序
	TypeWxOpenMini uint = 11007

	// TypePrintFeYin 飞印
	TypePrintFeYin uint = 11200

	// TypeLogisticsAMAli 阿里云市场阿里
	TypeLogisticsAMAli uint = 11300
	// TypeLogisticsKd100 快递100
	TypeLogisticsKd100 uint = 11301
	// TypeLogisticsKdBird 快递鸟
	TypeLogisticsKdBird uint = 11302
	// TypeLogisticsTaoBao 淘宝
	TypeLogisticsTaoBao uint = 11303

	// TypeIMTencent 腾讯
	TypeIMTencent uint = 11400

	// TypeCurrencyAMJiSu 阿里云市场极速
	TypeCurrencyAMJiSu uint = 11500
	// TypeCurrencyAMYiYuan 阿里云市场易圆
	TypeCurrencyAMYiYuan uint = 11501

	// TypeQCloud 腾讯云
	TypeQCloud uint = 11600
	// TypeQCloudCos 对象存储
	TypeQCloudCos uint = 11601

	// TypeQiNiu 七牛云
	TypeQiNiu uint = 11800
	// TypeQiNiuKodo 对象存储
	TypeQiNiuKodo uint = 11801

	// TypeAliOss 阿里云OSS
	TypeAliOss uint = 11900

	// TypeDingTalk 钉钉
	TypeDingTalk uint = 12000
	// TypeDingTalkCorp 企业号
	TypeDingTalkCorp uint = 12001
	// TypeDingTalkProvider 服务商
	TypeDingTalkProvider uint = 12002

	// TypeIotAliYun 阿里云
	TypeIotAliYun uint = 12100
	// TypeIotBaiDu 百度
	TypeIotBaiDu uint = 12101
	// TypeIotTencent 腾讯
	TypeIotTencent uint = 12102

	// TypePushAliYun 阿里云
	TypePushAliYun uint = 12200
	// TypePushBaiDu 百度
	TypePushBaiDu uint = 12201
	// TypePushXinGe 信鸽
	TypePushXinGe uint = 12202
	// TypePushJPush 极光
	TypePushJPush uint = 12203

	// TypeMQ 消息队列
	TypeMQ uint = 12300
	// TypeMQRedis redis
	TypeMQRedis uint = 12301
	// TypeMQRabbit rabbit
	TypeMQRabbit uint = 12302

	// TypeProtocol 协议
	TypeProtocol uint = 12400
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrorCommon

type ErrorCommon struct {
	Type  uint   `json:"type"`
	Title string `json:"title"`
	Code  uint   `json:"code"`
	Msg   string `json:"msg"`
	Err   error
}

ErrorCommon 公共错误

func NewAliOpen

func NewAliOpen(code uint, msg string, err error) *ErrorCommon

NewAliOpen 阿里云开放平台错误

func NewAliOss

func NewAliOss(code uint, msg string, err error) *ErrorCommon

NewAliOss 阿里云OSS错误

func NewAliPay

func NewAliPay(code uint, msg string, err error) *ErrorCommon

NewAliPay 支付宝错误

func NewAliPayAuth

func NewAliPayAuth(code uint, msg string, err error) *ErrorCommon

NewAliPayAuth 支付宝授权错误

func NewAliPayFund

func NewAliPayFund(code uint, msg string, err error) *ErrorCommon

NewAliPayFund 支付宝资金错误

func NewAliPayLife

func NewAliPayLife(code uint, msg string, err error) *ErrorCommon

NewAliPayLife 支付宝生活号错误

func NewAliPayMarket

func NewAliPayMarket(code uint, msg string, err error) *ErrorCommon

NewAliPayMarket 支付宝店铺错误

func NewAliPayMaterial

func NewAliPayMaterial(code uint, msg string, err error) *ErrorCommon

NewAliPayMaterial 支付宝物料错误

func NewAliPayTrade

func NewAliPayTrade(code uint, msg string, err error) *ErrorCommon

NewAliPayTrade 支付宝支付错误

func NewCacheMem

func NewCacheMem(code uint, msg string, err error) *ErrorCommon

NewCacheMem memcache缓存错误

func NewCacheRedis

func NewCacheRedis(code uint, msg string, err error) *ErrorCommon

NewCacheRedis redis缓存错误

func NewConfigViper

func NewConfigViper(code uint, msg string, err error) *ErrorCommon

NewConfigViper viper配置错误

func NewCurrencyAMJiSu

func NewCurrencyAMJiSu(code uint, msg string, err error) *ErrorCommon

NewCurrencyAMJiSu 阿里云市场极速货币错误

func NewCurrencyAMYiYuan

func NewCurrencyAMYiYuan(code uint, msg string, err error) *ErrorCommon

NewCurrencyAMYiYuan 阿里云市场易圆货币错误

func NewDbMonGo

func NewDbMonGo(code uint, msg string, err error) *ErrorCommon

NewDbMonGo mongo数据库错误

func NewDbMysql

func NewDbMysql(code uint, msg string, err error) *ErrorCommon

NewDbMysql mysql数据库错误

func NewDingTalk

func NewDingTalk(code uint, msg string, err error) *ErrorCommon

NewDingTalk 钉钉错误

func NewDingTalkCorp

func NewDingTalkCorp(code uint, msg string, err error) *ErrorCommon

NewDingTalkCorp 钉钉企业号错误

func NewDingTalkProvider

func NewDingTalkProvider(code uint, msg string, err error) *ErrorCommon

NewDingTalkProvider 钉钉服务商错误

func NewIMTencent

func NewIMTencent(code uint, msg string, err error) *ErrorCommon

NewIMTencent 腾讯即时通讯错误

func NewInnerJSON

func NewInnerJSON(code uint, msg string, err error) *ErrorCommon

NewInnerJSON 内部json错误

func NewInnerServer

func NewInnerServer(code uint, msg string, err error) *ErrorCommon

NewInnerServer 内部服务错误

func NewInnerValidator

func NewInnerValidator(code uint, msg string, err error) *ErrorCommon

NewInnerValidator 内部校验器错误

func NewIotAliYun

func NewIotAliYun(code uint, msg string, err error) *ErrorCommon

NewIotAliYun 阿里云物联网错误

func NewIotBaiDu

func NewIotBaiDu(code uint, msg string, err error) *ErrorCommon

NewIotBaiDu 百度物联网错误

func NewIotTencent

func NewIotTencent(code uint, msg string, err error) *ErrorCommon

NewIotTencent 腾讯物联网错误

func NewLogisticsAMAli

func NewLogisticsAMAli(code uint, msg string, err error) *ErrorCommon

NewLogisticsAMAli 阿里云市场阿里物流错误

func NewLogisticsKd100

func NewLogisticsKd100(code uint, msg string, err error) *ErrorCommon

NewLogisticsKd100 快递100物流错误

func NewLogisticsKdBird

func NewLogisticsKdBird(code uint, msg string, err error) *ErrorCommon

NewLogisticsKdBird 快递鸟物流错误

func NewLogisticsTaoBao

func NewLogisticsTaoBao(code uint, msg string, err error) *ErrorCommon

NewLogisticsTaoBao 淘宝物流错误

func NewMQ

func NewMQ(code uint, msg string, err error) *ErrorCommon

NewMQ 消息队列错误

func NewMQRabbit

func NewMQRabbit(code uint, msg string, err error) *ErrorCommon

NewMQRabbit Rabbit消息队列错误

func NewMQRedis

func NewMQRedis(code uint, msg string, err error) *ErrorCommon

NewMQRedis Redis消息队列错误

func NewMapBaiDu

func NewMapBaiDu(code uint, msg string, err error) *ErrorCommon

NewMapBaiDu 百度地图错误

func NewMapGaoDe

func NewMapGaoDe(code uint, msg string, err error) *ErrorCommon

NewMapGaoDe 高德地图错误

func NewMapTencent

func NewMapTencent(code uint, msg string, err error) *ErrorCommon

NewMapTencent 腾讯地图错误

func NewPrintFeYin

func NewPrintFeYin(code uint, msg string, err error) *ErrorCommon

NewPrintFeYin 飞印打印错误

func NewProtocol

func NewProtocol(code uint, msg string, err error) *ErrorCommon

NewProtocol 协议错误

func NewPushAliYun

func NewPushAliYun(code uint, msg string, err error) *ErrorCommon

NewPushAliYun 阿里云消息推送错误

func NewPushBaiDu

func NewPushBaiDu(code uint, msg string, err error) *ErrorCommon

NewPushBaiDu 百度消息推送错误

func NewPushJPush

func NewPushJPush(code uint, msg string, err error) *ErrorCommon

NewPushJPush 极光消息推送错误

func NewPushXinGe

func NewPushXinGe(code uint, msg string, err error) *ErrorCommon

NewPushXinGe 信鸽消息推送错误

func NewQCloud

func NewQCloud(code uint, msg string, err error) *ErrorCommon

NewQCloud 腾讯云错误

func NewQCloudCos

func NewQCloudCos(code uint, msg string, err error) *ErrorCommon

NewQCloudCos 腾讯云对象存储错误

func NewQiNiu

func NewQiNiu(code uint, msg string, err error) *ErrorCommon

NewQiNiu 七牛云错误

func NewQiNiuKodo

func NewQiNiuKodo(code uint, msg string, err error) *ErrorCommon

NewQiNiuKodo 七牛云对象存储错误

func NewSmsAliYun

func NewSmsAliYun(code uint, msg string, err error) *ErrorCommon

NewSmsAliYun 阿里云短信错误

func NewSmsDaYu

func NewSmsDaYu(code uint, msg string, err error) *ErrorCommon

NewSmsDaYu 阿里大鱼短信错误

func NewSmsYun253

func NewSmsYun253(code uint, msg string, err error) *ErrorCommon

NewSmsYun253 253云短信错误

func NewWx

func NewWx(code uint, msg string, err error) *ErrorCommon

NewWx 微信错误

func NewWxAccount

func NewWxAccount(code uint, msg string, err error) *ErrorCommon

NewWxAccount 微信公众号错误

func NewWxCorp

func NewWxCorp(code uint, msg string, err error) *ErrorCommon

NewWxCorp 微信企业号错误

func NewWxMini

func NewWxMini(code uint, msg string, err error) *ErrorCommon

NewWxMini 微信小程序错误

func NewWxOpen

func NewWxOpen(code uint, msg string, err error) *ErrorCommon

NewWxOpen 微信开放平台错误

func NewWxOpenAccount

func NewWxOpenAccount(code uint, msg string, err error) *ErrorCommon

NewWxOpenAccount 微信开放平台公众号错误

func NewWxOpenMini

func NewWxOpenMini(code uint, msg string, err error) *ErrorCommon

NewWxOpenMini 微信开放平台小程序错误

func NewWxProvider

func NewWxProvider(code uint, msg string, err error) *ErrorCommon

NewWxProvider 微信企业号服务商错误

func (*ErrorCommon) Error

func (e *ErrorCommon) Error() string

IErrorCommon 错误

func (*ErrorCommon) Unwrap

func (e *ErrorCommon) Unwrap() error

Unwrap Unwrap IErrorCommon 错误

type IErrorCommon

type IErrorCommon interface {
	Error() string
	Unwrap() error
}

IErrorCommon 错误公共接口

Jump to

Keyboard shortcuts

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