report

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2019 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: "未知的输入文件扩展名"},
	}
)
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