report

package
v0.0.0-...-3457ba0 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrorByID = map[string]*ErrorLanguage{
		"HeaderNotMatchFieldName":        {CHS: "表头与字段不匹配"},
		"HeaderFieldNotDefined":          {CHS: "表头字段未定义"},
		"DuplicateHeaderField":           {CHS: "表头字段重复"},
		"DuplicateKVField":               {CHS: "键值表字段重复"},
		"UnknownFieldType":               {CHS: "未知字段类型"},
		"DuplicateTypeFieldName":         {CHS: "类型表字段重复"},
		"EnumValueEmpty":                 {CHS: "枚举值空"},
		"DuplicateEnumValue":             {CHS: "枚举值重复"},
		"UnknownEnumValue":               {CHS: "未知的枚举值"},
		"InvalidTypeTable":               {CHS: "非法的类型表"},
		"HeaderTypeNotFound":             {CHS: "表头类型找不到"},
		"DuplicateValueInMakingIndex":    {CHS: "创建索引时发现重复值"},
		"UnknownInputFileExtension":      {CHS: "未知的输入文件扩展名"},
		"DataMissMatchTypeDefine":        {CHS: "数据与定义类型不匹配"},
		"ArrayMultiColumnDefineNotMatch": {CHS: "数组类型多列跨表定义不一致"},
		"InvalidFieldName":               {CHS: "非法字段名"},
		"UnknownTypeKind":                {CHS: "非法的类型种类"},
	}
)
View Source
var Log = golog.New("tabtoy2")

Functions

This section is empty.

Types

type ErrorLanguage

type ErrorLanguage struct {
	CHS string
}

type TableError

type TableError struct {
	ID string
	// contains filtered or unexported fields
}

func ReportError

func ReportError(id string, context ...interface{}) *TableError

func (*TableError) Error

func (self *TableError) Error() string

Jump to

Keyboard shortcuts

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